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

pybo silently processes a file as a folder #13

Closed
ngawangtrinley opened this issue Mar 22, 2021 · 1 comment
Closed

pybo silently processes a file as a folder #13

ngawangtrinley opened this issue Mar 22, 2021 · 1 comment

Comments

@ngawangtrinley
Copy link
Collaborator

We need either:
a. an error message asking for a folder
b. detect it's a file and process as such

This is actually a case of "duck typing" and we probably don't even need to ask users if it's a folder or a file in the first place

@kaldan007
Copy link
Contributor

  • checks if input dir is directory or not. If input dir is directory, it will iterate over the files inside it and proceed.
  • if input dir is a file, it will consider the contain inside it and tokenize
  • if input dir is invalid, it will print an error message.

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

2 participants