Compare commits

...

2 Commits

Author SHA1 Message Date
89e8bd1295
Merge branch 'master' of https://git.kmlabz.com/BiztProtoBois/server into master
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-25 18:13:24 +02:00
dc43cc3056
use bytes 2021-04-25 18:13:14 +02:00

View File

@ -64,7 +64,7 @@ class Executor:
strdirectory = strdirectory[:-1] strdirectory = strdirectory[:-1]
return strdirectory return strdirectory
def putFileInCurrentDirectory(self, filename: str, content) -> str: def putFileInCurrentDirectory(self, filename: str, content: bytes) -> str:
filename = self.sanitizeFile(filename) filename = self.sanitizeFile(filename)
currenctfile = os.path.join(self.currentDirectory, filename) currenctfile = os.path.join(self.currentDirectory, filename)
f = open(currenctfile, "wb") f = open(currenctfile, "wb")