Opened 14 years ago

Closed 14 years ago

#3713 closed enhancement (fixed)

rename feature for mythgallery files and folder

Reported by: Guido Grazioli <guido.grazioli@…> Owned by: paulh
Priority: minor Milestone: 0.21
Component: mythgallery Version: head
Severity: low Keywords:
Cc: Ticket locked: no


New submenu item "rename" under "file...", let rename the selected image filename or folder.

Attachments (1)

mythgallery-rename.diff (1.8 KB) - added by Guido Grazioli <guido.grazioli@…> 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by Guido Grazioli <guido.grazioli@…>

Attachment: mythgallery-rename.diff added


comment:1 Changed 14 years ago by paulh

Owner: changed from Isaac Richards to paulh

comment:2 Changed 14 years ago by paulh


You really need to fixup the metadata in the database after renaming a file or directory. As it stands the images all loose their metadata after the rename and there is stale entries left in the database that don't belong to any images.

Take a look at GalleryUtil::Copy(), GalleryUtil::Move(), GalleryUtil::CopyDirectory?() to see how it's done.

comment:3 Changed 14 years ago by paulh

Resolution: fixed
Status: newclosed

(In [14208]) Add rename feature for MythGallery files and directories.

Based on the original patch by Guido Grazioli.

Changes by me to ensure the metadata in the database is updated properly and renames any associated directory and file thumbnails so we don't leave stale thumb images behind. Tell the user if the rename failed and I also tweaked the default theme file a little to make room for the new menu item.

Closes #3713.

Note: See TracTickets for help on using tickets.