|
@@ -167,8 +167,9 @@ def removeOldRes(game, sdk, subChannel, config):
|
|
|
decompliePath = file_utils.getDecompliePath(game, sdk, subChannel, config['cache'])
|
|
|
for subPath in config['deleteList']:
|
|
|
resPath = os.path.join(decompliePath, subPath)
|
|
|
- os.remove(resPath)
|
|
|
- print('delete ' + resPath)
|
|
|
+ if os.path.exists(resPath):
|
|
|
+ os.remove(resPath)
|
|
|
+ print('delete ' + resPath)
|
|
|
return 0
|
|
|
|
|
|
def removeOldCode(game, sdk, subChannel, config):
|