Kaydet (Commit) 50134bef authored tarafından root's avatar root

actionsapi fix

üst 118b6f02
......@@ -448,7 +448,8 @@ def remove(sourceFile):
_("No file matched pattern \"{}\". Remove operation failed.").format(sourceFile))
for filePath in sourceFileGlob:
unlink(filePath)
if os.path.exists(directory):
unlink(filePath)
def removeDir(destinationDirectory):
......@@ -459,7 +460,8 @@ def removeDir(destinationDirectory):
_("No directory matched pattern \"{}\". Remove directory operation failed.").format(destinationDirectory))
for directory in destdirGlob:
unlinkDir(directory)
if os.path.isdir(directory):
unlinkDir(directory)
class Flags:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment