Skip to content
Discussion options

You must be logged in to vote

There is -move or -rename for this purpose, however they must be used to do the actual moving/renaming of files, they weren't designed to fix it after.

_index/media0.db is a sqlite database containing file paths, you could update the paths there manually with the new prefix.

sqlite3 _index/media0.db
update media set path=replace(path, 'old-name/', 'new-name/') where path like 'old-name/%'

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by scrubbbbs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants