This commit is contained in:
parent
841c5d4c20
commit
6d2441d931
@ -84,7 +84,10 @@ class Executor:
|
|||||||
|
|
||||||
def removeFileInCurrentDirectory(self, file: str) -> str:
|
def removeFileInCurrentDirectory(self, file: str) -> str:
|
||||||
file = self.sanitizeFile(file)
|
file = self.sanitizeFile(file)
|
||||||
currentfile = os.path.join(self.baseDir, self.currentDirectory, file)
|
if self.currentDirectory == "":
|
||||||
|
currentfile = os.path.join(self.baseDir, file)
|
||||||
|
else:
|
||||||
|
currentfile = os.path.join(self.baseDir, self.currentDirectory, file)
|
||||||
if os.path.exists(currentfile):
|
if os.path.exists(currentfile):
|
||||||
os.remove(currentfile)
|
os.remove(currentfile)
|
||||||
return currentfile
|
return currentfile
|
||||||
|
Loading…
Reference in New Issue
Block a user