From 30ebc0038fcbee71cbe3e3bc9c6b0a39eb81f50d Mon Sep 17 00:00:00 2001 From: kaluwedana Date: Fri, 1 Oct 2021 15:46:43 +0530 Subject: [PATCH] updated --- ModifyFilename.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ModifyFilename.py b/ModifyFilename.py index 466782f..e05e57b 100644 --- a/ModifyFilename.py +++ b/ModifyFilename.py @@ -7,5 +7,4 @@ for i in subdir: end_dir = os.listdir(path) for i in range(len(end_dir)): newname = end_dir[i][0:50] - os.rename(os.path.join(path, end_dir[ - i]), os.path.join(path, newname)) + os.rename(os.path.join(path, end_dir[i]), os.path.join(path, newname))