Add a new example showing how to use DictFS
authorEvan Broder <broder@mit.edu>
Tue, 12 Aug 2008 07:34:32 +0000 (00:34 -0700)
committerEvan Broder <broder@mit.edu>
Tue, 12 Aug 2008 07:34:32 +0000 (00:34 -0700)
routefs/examples/dictexfs.py [new file with mode: 0755]

diff --git a/routefs/examples/dictexfs.py b/routefs/examples/dictexfs.py
new file mode 100755 (executable)
index 0000000..5533f04
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/python
+
+import routefs
+
+class DictExFS(routefs.DictFS):
+    files = dict(Hello='World',
+                 Directory=dict(a='a', b='b', c=routefs.Symlink('a')))
+
+if __name__ == '__main__':
+    routefs.main(DictExFS)