View Single Post
Old 10-21-2008, 03:29 PM   #4
thomega
Connoisseur
thomega began at the beginning.
 
Posts: 56
Karma: 22
Join Date: Oct 2008
Location: Würzburg, Germany
Device: iRex DR1000S
Quote:
Originally Posted by Adam B. View Post
There's no rename functionality built into the device. It also explains why they want you to manage it with the companion software instead of working directly with the file system.
But
Code:
echo "update file_metadata set filename = '$2' where filename = '$1';" | sqlite3 metadata.db
does the trick, when $1 is the old filename and $2 the new.

I was very sceptial about the move from XML to Sqlite3, but it's very easy to encapsulate stuff like that in small scripts and stop worrying. Much easier than waiting for a reader to play around with, that is.

Last edited by thomega; 10-21-2008 at 03:48 PM.
thomega is offline   Reply With Quote