Open sgbaird opened 1 year ago
Maybe something like the following (haven't tested):
from pathlib import Path
for fpath in fpaths:
if not Path.exists(fpath):
raise FileNotFoundError(fpath)
PR welcome! you can add your logic in in the following code between line 204 and 205, you can do an existence check for the file and either raise an error or just continue.
@sgbaird any chance you can take a look at this? Should be as easy as putting
if not path.is_file():
raise FileNotFoundError(path)
like you suggested between line 204 and 205
e.g.,
Many times I'm uploading large files, so it might take ~5-10 minutes before it throws the error.