Jul-25-2021, 09:14 AM
Please note:
Add after line 3 (only until working)
try results from command line to make sure it's formed correctly:
Linux:
MS Windows: use dir command
Also note, From docs:
Add after line 3 (only until working)
print(f"path: {path}")
try results from command line to make sure it's formed correctly:
Linux:
ls -l path
MS Windows: use dir command
Also note, From docs:
Quote: On Windows, attempting to remove a file that is in use causes an exception to be raised; on Unix, the directory entry is removed but the storage allocated to the file is not made available until the original file is no longer in use.Make sure file is closed before removing.