projects
/
invirt/packages/python-afs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix the README to actually talk about PyAFS, not PyHesiod.
[invirt/packages/python-afs.git]
/
afs
/
fs.py
1
import errno
2
from afs import _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