Skip to content

batch rename #269

Closed
Closed
@wpferguson

Description

Started work on a batch rename script. So far it's restricted to renaming files in the current film roll. The problem isn't so much renaming the file as it is keeping the database in sync. The xmp files also need renamed and ideally the filename in the xmp file needs changed. That's not a problem in linux/macos because of multiple tools to edit the file from the script, but is in windows. I may just be able to do a re-import on the film roll to force the correction.

If we expand rename to allow specifying different paths, which in effect becomes a move, then things start to get a little hairy. Since I'm moving files around, then I need to re-import all of the affected directories. It also allows the user to do some ill advised things like sort files into directories based on ISO which would result in multiple film rolls named 100, 200, 400, 800, etc.

There is also no way to revert this at present. I could add a tag with the original filename and the original film roll and then create an undo function that checks the tag and reverts the rename.

@schwerdf, others, thoughts?

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions