Created
October 3, 2012 20:31
-
-
Save rcaldwel/3829664 to your computer and use it in GitHub Desktop.
for curt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
dirs = ['/Users/rocaldwe/temp', | |
'/Users/rocaldwe/python', | |
'/Users/rocaldwe/bash'] | |
found = False | |
for i in open('files'): | |
file_name = i.strip() | |
for d in dirs: | |
# print d | |
# print file_name | |
if os.path.isfile('%s/%s' % (d, file_name)): | |
found = True | |
if not found: | |
print('file: %s not found' % file_name) | |
found = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment