Skip to content

Delete (to Trash) fails when ~/.local/share/Trash and the file are on different filesystems (EXDEV) #1333

@sherpya

Description

@sherpya

Describe the bug
Delete (to Trash) fails when ~/.local/share/Trash and the file are on different filesystems (EXDEV)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '/tmp/' (only if mounted on tmpfs) or to a different device
  2. Create a file, like touch delete-me.txt
  3. Lanch spf and try to delete it
  4. See error: deleting failed

Expected behavior
The file is moved in Trash folder

Screenshots

49704 renameat(AT_FDCWD, "/tmp/delete-me.txt", AT_FDCWD, "/home/sherpya/.local/share/Trash/files/delete-me.txt") = -1 EXDEV (Invalid cross-device link)

System information (please complete the following information):

  • OS: Linux
  • superfile Version 1.5.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions