Created
February 27, 2015 18:51
-
-
Save fragmede/7ac83db70315ce2a0025 to your computer and use it in GitHub Desktop.
This file contains 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 | |
import sys | |
while True: | |
try: | |
filename = raw_input() | |
except EOFError: | |
sys.exit(0) | |
try: | |
os.stat(filename) | |
print filename | |
except OSError: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment