You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my root directory I have a folder called "Text folders" that contains 50 folders, each with one PDF inside. I have run the code that extracts these texts dozens of times already without any problems. After migrating my root directory to another place, I suddenly got an error message:
Error in list_files(file, ignore_missing, TRUE, verbosity) : File '' does not exist.
It took quite a bit of time to diagnose that readtext() had trouble reading exactly two out of the 50 files. Incidentally, those two files are also in the two folders with the longest names. After renaming these folders to something else, everything worked again normally.
I think ideally there should be a distinct warning if a file can't be extracted due to file paths being too long.
The text was updated successfully, but these errors were encountered:
alohacocoa
changed the title
Readtext gives unformative error message when file paths are too long
Readtext gives uninformative error message when file paths are too long
May 5, 2023
In my root directory I have a folder called "Text folders" that contains 50 folders, each with one PDF inside. I have run the code that extracts these texts dozens of times already without any problems. After migrating my root directory to another place, I suddenly got an error message:
Error in list_files(file, ignore_missing, TRUE, verbosity) : File '' does not exist.
It took quite a bit of time to diagnose that readtext() had trouble reading exactly two out of the 50 files. Incidentally, those two files are also in the two folders with the longest names. After renaming these folders to something else, everything worked again normally.
I think ideally there should be a distinct warning if a file can't be extracted due to file paths being too long.
The text was updated successfully, but these errors were encountered: