USBMS: support deleting aux files that both replace and append extensions.

This commit is contained in:
John Schember 2010-01-14 06:56:04 -05:00
parent e31fc920db
commit 00d9520e7a

View File

@ -151,6 +151,8 @@ class USBMS(CLI, Device):
for ext in self.DELETE_EXTS: for ext in self.DELETE_EXTS:
if os.path.exists(filepath + ext): if os.path.exists(filepath + ext):
os.unlink(filepath + ext) os.unlink(filepath + ext)
if os.path.exists(path + ext):
os.unlink(path + ext)
if self.SUPPORTS_SUB_DIRS: if self.SUPPORTS_SUB_DIRS:
try: try: