Add files via upload

This commit is contained in:
bender
2023-01-25 16:35:09 -05:00
committed by GitHub
parent c508a19570
commit c42a6c8a1b
11 changed files with 492 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#Confirmed working as of 1/22/23
import os
import shutil
root_dir = '/Users/jonas/Documents/SERVER/BOOKS/TEST'
for subdir, dirs, files in os.walk(root_dir):
for file in files:
if file.endswith('.odm.metadata'):
old_file = os.path.join(subdir, file)
new_file = os.path.join(subdir, "metadata.xml")
shutil.copy2(old_file, new_file)
break