Please use the script to find file from specific folder
import os
def getFileNameandTargetRootDirectory(fileName, rtDir):
for root, dirs, files in os.walk(rtDir):
for f in files:
if f.lower() == fileName:
print 'Matched File Name: '+f
print('Path: '+os.path.join(root, f))
print '
'
def main():
getFileNameandTargetRootDirectory('test.txt','c:\\users\\max')
if __name__=='__main__':
main()
Sample Output: