Rename UX570 files by photo_rename before importing.
This commit is contained in:
parent
8b6054511b
commit
6f1cc8862f
1 changed files with 8 additions and 5 deletions
|
|
@ -47,9 +47,12 @@ def sdingest_all():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Sony ICD UX570
|
# Sony ICD UX570
|
||||||
if info.get('name').upper() == 'MEMORY CARD':
|
|
||||||
folder = mount.join('PRIVATE\\SONY\\REC_FILE')
|
folder = mount.join('PRIVATE\\SONY\\REC_FILE')
|
||||||
if folder.exists:
|
if info.get('name').upper() == 'MEMORY CARD' and folder.is_folder:
|
||||||
|
files = list(folder.walk_files())
|
||||||
|
pairs = photo_rename.makenames(files, read_mtime=True)
|
||||||
|
for (old, new) in pairs.items():
|
||||||
|
os.rename(old.absolute_path, new.absolute_path)
|
||||||
sdingest_one(folder)
|
sdingest_one(folder)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue