diff --git a/server/executor.py b/server/executor.py index 26245db..3543157 100644 --- a/server/executor.py +++ b/server/executor.py @@ -38,7 +38,7 @@ class Executor: if dirName == "..": p = Path(os.path.join(self.baseDir, self.currentDirectory)) parentpath = p.parent - if str(parentpath) == self.baseDir: + if (str(parentpath) + os.path.sep)== self.baseDir: return self.currentDirectory else: newpath = str(parentpath).replace(self.baseDir,'')