Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

search for file in a whole system

import os

def search(drive,name):
    for dirpath, dirs, files in os.walk(drive):
        if name in files:
            return (os.path.join(dirpath, name))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #search #file #system
ADD COMMENT
Topic
Name
1+1 =