Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readtext gives uninformative error message when file paths are too long #173

Open
alohacocoa opened this issue May 5, 2023 · 0 comments

Comments

@alohacocoa
Copy link

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.

@alohacocoa 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant