Minor modifications

This commit is contained in:
2022-07-01 18:16:17 +02:00
parent 0b354cf6d5
commit 08a2ad6eff
+4
View File
@@ -27,6 +27,8 @@ for file in relevant_files:
if not fitting_file_exists:
files_to_rm.append(file)
files_to_rm.sort()
directory_str_has_slash = directory[-1] == "/"
if not directory_str_has_slash:
directory += "/"
@@ -36,4 +38,6 @@ for i in files_to_rm:
print("You can run the following command to delete all the files:")
print(rm_string)
with open("rm.sh", 'w') as f:
f.write(rm_string)
print("This will delete the following files: " + str(files_to_rm))