Skip to content

Instantly share code, notes, and snippets.

@rcaldwel
Created October 3, 2012 20:31
Show Gist options
  • Save rcaldwel/3829664 to your computer and use it in GitHub Desktop.
Save rcaldwel/3829664 to your computer and use it in GitHub Desktop.
for curt
#!/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