projects
/
invirt/packages/python-afs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a12b365f2184c2e6a94cec2a495118aecb3a71b6
[invirt/packages/python-afs.git]
/
afs
/
fs.py
1
import errno
2
import afs._fs
3
from afs._fs import whichcell
4
5
def inafs(path):
6
"""Return True if a path is in AFS."""
7
try:
8
whichcell(path)
9
except OSError, e:
10
if e.errno in (errno.EINVAL, errno.ENOENT):
11
return False
12
13
return True