Changeset 32221 for trunk/ippToPsps
- Timestamp:
- Aug 29, 2011, 9:33:33 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r32211 r32221 191 191 ''' 192 192 @staticmethod 193 def deleteFromDisk( basePath, batchType, dvoLabel, id):193 def deleteFromDisk(logger, basePath, batchType, dvoLabel, id): 194 194 195 195 tarballPath = Batch.getTarballPath(basePath, batchType, dvoLabel, id) 196 196 dirPath = Batch.getOutputPath(basePath, batchType, dvoLabel, id) 197 197 198 if not os.path.exists(tarballPath): return 1 198 if not os.path.exists(tarballPath): 199 logger.errorPair("Could not find", tarballPath) 200 return 1 199 201 200 202 try: 201 203 os.remove(tarballPath) 204 logger.infoPair("Deleted", tarballPath) 202 205 except: 206 logger.errorPair("Could not delete", tarballPath) 203 207 return 0 204 208
Note:
See TracChangeset
for help on using the changeset viewer.
