diff options
author | Georg Brandl <georg@python.org> | 2010-08-02 23:17:21 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-08-02 23:17:21 (GMT) |
commit | 68642f5ed0100eb8c0b970bc9333af1d272bf4f8 (patch) | |
tree | 186d1b3946afb9d03d841df75d218c9fef0911d1 /Demo/pdist/sumtree.py | |
parent | 2db2b8a17dd643fd48ae050404e2dacc40afacc9 (diff) | |
download | cpython-68642f5ed0100eb8c0b970bc9333af1d272bf4f8.zip cpython-68642f5ed0100eb8c0b970bc9333af1d272bf4f8.tar.gz cpython-68642f5ed0100eb8c0b970bc9333af1d272bf4f8.tar.bz2 |
Remove obsolete pdist demo.
Diffstat (limited to 'Demo/pdist/sumtree.py')
-rw-r--r-- | Demo/pdist/sumtree.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Demo/pdist/sumtree.py b/Demo/pdist/sumtree.py deleted file mode 100644 index 92e7771..0000000 --- a/Demo/pdist/sumtree.py +++ /dev/null @@ -1,27 +0,0 @@ -import time -import sys -import FSProxy - -def main(): - t1 = time.time() - #proxy = FSProxy.FSProxyClient(('voorn.cwi.nl', 4127)) - proxy = FSProxy.FSProxyLocal() - sumtree(proxy) - proxy._close() - t2 = time.time() - print(t2-t1, "seconds") - sys.stdout.write("[Return to exit] ") - sys.stdout.flush() - sys.stdin.readline() - -def sumtree(proxy): - print("PWD =", proxy.pwd()) - files = proxy.listfiles() - proxy.infolist(files) - subdirs = proxy.listsubdirs() - for name in subdirs: - proxy.cd(name) - sumtree(proxy) - proxy.back() - -main() |