Changeset 4907 for waeup/trunk/src
- Timestamp:
- 27 Jan 2010, 12:31:07 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/trunk/src/waeup/datacenter.txt
r4897 r4907 153 153 [] 154 154 155 >>> shutil.rmtree(tmp_dir) 155 The created dir will be removed for us by the datacenter. This way we 156 can assured, that less temporary dirs are left hanging around: 157 158 >>> os.path.exists(tmp_dir) 159 False 156 160 157 161 The root dir is empty, while the original file and the file containing … … 173 177 >>> sorted(os.listdir(unfin_dir)) 174 178 ['mysource.csv'] 175 176 >>> shutil.rmtree(tmp_dir)177 179 178 180 While the original source was moved to the 'unfinished' dir, the … … 197 199 [] 198 200 199 >>> shutil.rmtree(tmp_dir)200 201 201 The result is the same as in the first case shown above. 202 202 … … 211 211 >>> mydatacenter.distProcessedFiles(False, src, finished_src, 212 212 ... pending_src) 213 >>> shutil.rmtree(tmp_dir)214 213 215 214 We try to process the pending file, which fails again: … … 219 218 >>> mydatacenter.distProcessedFiles(False, src, finished_src, 220 219 ... pending_src) 221 >>> shutil.rmtree(tmp_dir)222 220 223 221 We try to process the new pending file: … … 237 235 ['mysource.csv'] 238 236 239 >>> shutil.rmtree(tmp_dir)240 241 237 Finally, we process the pending file and everything works: 242 238 … … 260 256 Clean up: 261 257 262 >>> shutil.rmtree(tmp_dir)263 258 >>> shutil.rmtree(verynewpath) 264 259
Note: See TracChangeset for help on using the changeset viewer.