From c129e20dc87d3be28bd3dce0b127ea2db71d356b Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Tue, 12 Aug 2008 00:34:32 -0700 Subject: [PATCH] Add a new example showing how to use DictFS --- routefs/examples/dictexfs.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 routefs/examples/dictexfs.py diff --git a/routefs/examples/dictexfs.py b/routefs/examples/dictexfs.py new file mode 100755 index 0000000..5533f04 --- /dev/null +++ b/routefs/examples/dictexfs.py @@ -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) -- 1.7.9.5