Recent content by paulspavan

  1. P

    Python os.scandir() returns file or directory not found

    I am developing a flask app that scans a directory on local disk and performs some file operations. It works very well in Windows, but when I deploy to DigitalOcean (Linux) it gives the following error: for file in os.scandir(path): FileNotFoundError: [Errno 2] No such file or directory...
Top Bottom