Open 0xisk opened 5 years ago
@KirollosNasr Review last commit.
the searching algorithm used runs pretty well, but because it use find command, it can take a while. as it scan the whole system at real time. I think we can use locate command for better performance. Also the way of search seems to be repetitive.it can be reduced.
@KirollosNasr Ok very well.
I uploaded locating.py script
I'll upload a new version of searching search.py
I uploaded the new version of searching That focuses on performance as well. It has two different implementations, one for real time scanning using find command And the other uses locate command with an option to update its database
Implement searching algorithm for searching for directory/file locations with the best complexity .
Expected input: <directory/file>?
Expected output: <directory/file path>*
? = 'Optional [0,1]'