diff options
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() |