« first day (3657 days earlier)      last day (445 days later) » 

12:22 PM
-1
Q: python shutil can not copy a file

Amgad ElsaieghI am simply trying to copy a file to a new name in the same directory but i am getting an ugly FileNotFoundError: [Errno 2] No such file or directory although the file exists! tested the code on both linux and windows 11 here is my sample code: import os import shutil from pathlib import Path ...

 
 
6 hours later…
 
3 hours later…
9:41 PM
just a random comment passing through
 

« first day (3657 days earlier)      last day (445 days later) »