summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2011-06-11 22:35:42 +0200
committerLaurent Bachelier <laurent@bachelier.name>2011-06-11 22:35:42 +0200
commitda425b5c3385c01969c1c8d9bb03a71b3765b7a3 (patch)
tree8ce0e4b5137d2434cf4136a1d29abc03df2bf935
parentAdd tests for tree copying (diff)
downloadffs-da425b5c3385c01969c1c8d9bb03a71b3765b7a3.tar.xz
Safeguards
-rw-r--r--ffs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffs.py b/ffs.py
index 7a85629..7f57dbe 100644
--- a/ffs.py
+++ b/ffs.py
@@ -31,6 +31,7 @@ class Dict(MutableMapping):
def __init__(self, root, router):
self.root = root
self.router = router
+ assert self.root and os.path.isdir(self.root)
def __contains__(self, key):
return self.router.route(key) and \