Changeset 4192
- Timestamp:
- 08/27/08 11:30:31 (4 months ago)
- Files:
-
- screenshotsplugin/0.10/tracscreenshots/core.py (modified) (1 diff)
- screenshotsplugin/0.11/tracscreenshots/core.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
screenshotsplugin/0.10/tracscreenshots/core.py
r3313 r4192 382 382 383 383 #Â Delete screenshot files. Don't append any other files there :-). 384 path = os.path.join(self.path, unicode(screenshot['id'])) 384 path = os.path.join(self.path, to_unicode(screenshot['id'])) 385 path = os.path.normpath(path) 386 self.log.debug('path: %s' % (path,)) 385 387 for file in os.listdir(path): 386 388 file = os.path.join(path, file) 389 file = os.path.normpath(file) 387 390 os.remove(file) 388 391 os.rmdir(path) screenshotsplugin/0.11/tracscreenshots/core.py
r3313 r4192 411 411 #Â Delete screenshot files. Don't append any other files there :-). 412 412 path = os.path.join(self.path, to_unicode(screenshot['id'])) 413 path = unicodedata.normalize('NFC', path) 414 path = path.replace('\\', '/').replace(':', '/') 413 path = os.path.normpath(path) 415 414 self.log.debug('path: %s' % (path,)) 416 415 for file in os.listdir(path): 417 416 file = os.path.join(path, file) 417 file = os.path.normpath(file) 418 418 os.remove(file) 419 419 os.rmdir(path)
