directory - Fastest way to check in python if a file exists and get its path in a very wide tree of subdirectories -
directory - Fastest way to check in python if a file exists and get its path in a very wide tree of subdirectories -
this question has reply here:
find file in python 4 answersso problem have directory on 1000 subdirectories , want efficient way check if file in them. there way without stepping through each directory until find it? prefer pythonic way of doing can run through os.system acceptable long efficient. give thanks you!
as mentioned in http://bugs.python.org/issue11406 walk slower should be, community came alternative of course.
assuming fastest mean run time, should  utilize scandir: https://github.com/benhoyt/scandir/#readme
 python directory find binary-search-tree directory-structure 
 
Comments
Post a Comment