359be1c870
File operations always raise a ENOENT error when a file doesn't exist. Checking the file exists before the operation adds a race condition condition where the file could be removed between operations. As the operation already raises an error on a missing file, avoid this race and avoid checking the file exists twice. Instead only check a file exists by catching the ENOENT error. |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
images.py | ||
locks.py | ||
move.py | ||
storage.py | ||
temp.py | ||
uploadedfile.py | ||
uploadhandler.py | ||
utils.py |