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

Possible optimization #6

Open
gigasurgeon opened this issue Apr 13, 2021 · 2 comments
Open

Possible optimization #6

gigasurgeon opened this issue Apr 13, 2021 · 2 comments

Comments

@gigasurgeon
Copy link

The script is not checking if the os.listdir's current element is a folder or not. We can skip the next loops if it is a folder.

@mhhabib
Copy link
Owner

mhhabib commented Apr 13, 2021

@ghostmahoday Can you please mention the specific line no?

@gigasurgeon
Copy link
Author

after line 41,we can add a check if the "fil" is a file or a directory. If directory, then we can skip the rest of the loops

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