Hi there!
I have a Flask app which uses os.remove
to delete individual files:
os.remove("/home/username/folder/filename.extension")
it doesn't throw an error, but doesn't delete the file either.
I have also tried moving the file using:
os.rename("/home/username/folder/filename.extension", "/home/username/new_folder/filename.extension")
which basically clones the file to the new path without deleting the old one.
I thought it may have to do with permissions, so I tried:
chmod a+rwx /home/username/folder/
any ideas?