Fix error message formatting in check_paths method

This commit is contained in:
Karol Mazurek
2025-12-15 16:01:17 +01:00
parent 46e647ad47
commit 43e98834cc

2
VIII. Sandbox/python/crimson_waccess.py Normal file → Executable file
View 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.'''