Skip to content

Commit

Permalink
not really necessary fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
danny8376 committed Oct 31, 2023
1 parent 8d3f0d3 commit 879f82a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions MSET9_installer_script/mset9.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,8 @@ def getsize(self, path):
def remove(self, path):
self.fs.remove(path)
def rename(self, src, dst):
srcdir = os.path.dirname(src)
srcname = os.path.basename(src)
dstdir = os.path.dirname(dst)
dstname = os.path.basename(dst)
srcdir, srcname = f"/{src}".rstrip("/").rsplit("/", 1)
dstdir, dstname = f"/{dst}".rstrip("/").rsplit("/", 1)
if srcdir == dstdir and all(not EightDotThree.is_8dot3_conform(n) for n in [srcname, dstname]):
# cursed rename, lfn and same folder only
pdentry = self.fs._get_dir_entry(srcdir)
Expand Down

0 comments on commit 879f82a

Please sign in to comment.