mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-03-30 14:00:16 +02:00
Fix error message formatting in check_paths method
This commit is contained in:
2
VIII. Sandbox/python/crimson_waccess.py
Normal file → Executable file
2
VIII. Sandbox/python/crimson_waccess.py
Normal file → Executable file
@@ -20,7 +20,7 @@ class Waccess:
|
||||
elif os.path.isfile(path):
|
||||
self.check_file_write_permission(path, output_path)
|
||||
else:
|
||||
sys.stderr.write(f"Path {path} does not exist.")
|
||||
sys.stderr.write(f"Path {path} does not exist.\n")
|
||||
|
||||
def check_directory_write_permission(self, directory_path, output_path):
|
||||
'''Check if a directory is writable by attempting to create a test file.'''
|
||||
|
||||
Reference in New Issue
Block a user