git-buildpackage wants a header for its options.
[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