Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions academy/file_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,28 +267,24 @@ def create(self, path: str, content):

with open(path, "w") as f:
f.write(content)
os.chmod(path, 0o777)

def create_binary(self, path: str, content):
super().create_binary(path, content)

with open(path, "wb") as f:
f.write(content)
os.chmod(path, 0o777)

def write(self, path: str, content):
super().write(path, content)

with open(path, "w") as f:
f.write(content)
os.chmod(path, 0o777)

def write_binary(self, path: str, content):
super().write_binary(path, content)

with open(path, "wb") as f:
f.write(content)
os.chmod(path, 0o777)

def read(self, path: str) -> str:
super().read(path)
Expand Down Expand Up @@ -324,7 +320,6 @@ def mkdir(self, path: str):
super().mkdir(path)

os.makedirs(path)
os.chmod(path, mode=0o777)

def renamefile(self, old_path: str, new_path: str):
super().renamefile(old_path, new_path)
Expand Down