Spaces:
Runtime error
Runtime error
Commit ·
b0ea2a7
1
Parent(s): 9dd3210
Update app.py
Browse files
app.py
CHANGED
|
@@ -263,8 +263,10 @@ def storeIndex1(files):
|
|
| 263 |
# # Concatenate new name and original extension
|
| 264 |
new_path = os.path.join(newPath, new_name + ext)
|
| 265 |
# Move file to new location with new name
|
| 266 |
-
print(files.name)
|
| 267 |
-
|
|
|
|
|
|
|
| 268 |
return
|
| 269 |
|
| 270 |
|
|
|
|
| 263 |
# # Concatenate new name and original extension
|
| 264 |
new_path = os.path.join(newPath, new_name + ext)
|
| 265 |
# Move file to new location with new name
|
| 266 |
+
# print(files.name)
|
| 267 |
+
print(files)
|
| 268 |
+
print(new_path)
|
| 269 |
+
os.rename(files, new_path)
|
| 270 |
return
|
| 271 |
|
| 272 |
|