- Timestamp:
- 20 Sep 2012, 08:49:37 (12 years ago)
- Location:
- main/waeup.kofa/branches/uli-zc-async
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-zc-async
- Property svn:mergeinfo changed
-
main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/datacenter.txt
r8398 r9209 83 83 We can get a list of files stored in that location: 84 84 85 >>> mydatacenter.get Files()85 >>> mydatacenter.getPendingFiles() 86 86 [] 87 87 … … 94 94 Now we can find a file: 95 95 96 >>> mydatacenter.get Files()96 >>> mydatacenter.getPendingFiles() 97 97 [<waeup.kofa.datacenter.DataCenterFile object at 0x...>] 98 98 … … 102 102 pages: 103 103 104 >>> datafile = mydatacenter.get Files()[0]104 >>> datafile = mydatacenter.getPendingFiles()[0] 105 105 >>> datafile.getSize() 106 106 '13 bytes' … … 272 272 finished-subdirectory remain. 273 273 274 275 We can get a list of imported files stored in the finished subfolder: 276 277 >>> mydatacenter.getFinishedFiles() 278 [<waeup.kofa.datacenter.DataCenterFile object at ...>, <waeup.kofa.datacenter.DataCenterFile object at ...>] 279 280 >>> datafile = mydatacenter.getFinishedFiles()[0] 281 >>> datafile.getSize() 282 '2 bytes' 283 284 >>> datafile.getDate() # Nearly current datetime... 285 '...' 286 287 274 288 Clean up: 275 289
Note: See TracChangeset for help on using the changeset viewer.