Fix error message formatting in check_paths method

This commit is contained in:
Karol Mazurek committed 2025-12-15 16:01:17 +01:00
1 parent 46e647ad47
commit 43e98834cc
1 file changed
+1 -1
+1 -1
View File
@@ -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.'''