Link deletion deletes target, not link in MovieSelection

Issue #668 resolved
prl created an issue

If RED Delete is used in MovieSelection to delete a symbolic link to a directory, the linked directory is deleted, not the link itself.

The link is not deleted, but won't be displayed in MovieSelection.

The problem doesn't occur for symbolic links to files.

Replication steps

Create a subdirectory in a directory accessible in MovieSelection.

Create a symbolic link to that subdirectory in a directory accessible in MovieSelection.

In MovieSelection (MEDIA from live TV), disable MENU>Settings>Use trash in movie list & save the setting.

Use RED Delete to delete the link. In the commandline interface, verify that the directory was deleted and that the link was not deleted.

Comments (3)

  1. Peter Urbanec

    Fix bug #668: Link deletion deletes target, not link in MovieSelection

    [MovieSelection]

    In deleteDirConfirmed(), handle pathname cleanup of links to directories and directories separately - only run ps.path.realpath() on the head part of a link, but call it on the whole path on a directory.

    Handle deletion of links and directories separately.

    → <<cset 1475171bca65>>

  2. Log in to comment