fixed the directory permission assignment after creation of scan_info (chmod(775) -> chmod(0o775)) in scan.py

This commit is contained in:
“Roman
2019-05-07 19:14:34 +02:00
parent 0f7d8d6f05
commit fea189a551
+3 -3
View File
@@ -163,9 +163,9 @@ class Scans:
f"NB! Path {scan_info_dir.absolute().as_posix()} does not exist, will try to create it..."
)
scan_info_dir.mkdir()
print(f"Successfully created {scan_info_dir.absolute().as_posix()}")
scan_info_dir.chmod(775)
print(f"Successfully changed permissions to 775")
print(f"Tried to create {scan_info_dir.absolute().as_posix()}")
scan_info_dir.chmod(0o775)
print(f"Tried to change permissions to 775")
self.scan_info_dir = scan_info_dir
self.filename_generator = RunFilenameGenerator(self.scan_info_dir)