Possible optimization
gigasurgeon opened this issue · 2 comments
gigasurgeon commented
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 commented
@ghostmahoday Can you please mention the specific line no?
gigasurgeon commented
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