mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-10-01 00:09:34 +02:00
Fix error message formatting in check_paths method
This commit is contained in:
1 parent
46e647ad47
commit
43e98834cc
1 file changed
+1
-1
Regular → Executable
+1
-1
@@ -20,7 +20,7 @@ class Waccess:
|
|||||||
elif os.path.isfile(path):
|
elif os.path.isfile(path):
|
||||||
self.check_file_write_permission(path, output_path)
|
self.check_file_write_permission(path, output_path)
|
||||||
else:
|
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):
|
def check_directory_write_permission(self, directory_path, output_path):
|
||||||
'''Check if a directory is writable by attempting to create a test file.'''
|
'''Check if a directory is writable by attempting to create a test file.'''
|
||||||
|
|||||||
Reference in new issue
Block a user