Private GIT

Skip to content
Snippets Groups Projects
Commit f0f484dd authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Try fixing encoding errors during renaming

parent 5fa9c9e6
Branches
Tags
No related merge requests found
...@@ -46,8 +46,8 @@ sample_ratio = 0.3 ...@@ -46,8 +46,8 @@ sample_ratio = 0.3
def renameFile(movedFilePath, newName): def renameFile(movedFilePath, newName):
filePath = ek.ek(os.path.split, movedFilePath) filePath = os.path.split(movedFilePath)
oldFile = ek.ek(os.path.splitext, filePath[1]) oldFile = os.path.splitext(filePath[1])
renamedFilePathname = ek.ek(os.path.join, filePath[0], helpers.sanitizeFileName(newName) + oldFile[1]) renamedFilePathname = ek.ek(os.path.join, filePath[0], helpers.sanitizeFileName(newName) + oldFile[1])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment