source: orange/orange/doc/Orange/rst/code/serverfiles1.py @ 7742:f8f8bdab658d

Revision 7742:f8f8bdab658d, 488 bytes checked in by markotoplak, 3 years ago (diff)

Moved orngServerFiles to a new hierarchy.

Line 
1import Orange
2sf = Orange.misc.serverfiles
3
4repository = sf.ServerFiles() 
5
6print "My files (in demo)", sf.listfiles('demo') 
7print "Repository files", repository.listfiles('demo') 
8print "Downloading all files in domain 'demo'" 
9
10for file in repository.listfiles('demo'): 
11    print "Datetime for", file, repository.info('demo', file)["datetime"] 
12    sf.download('demo', file) 
13   
14print "My files (in demo) after download", sf.listfiles('demo') 
15print "My domains", sf.listdomains() 
Note: See TracBrowser for help on using the repository browser.