Giter Site home page Giter Site logo

Move music to trash about beets HOT 8 OPEN

beetbox avatar beetbox commented on July 23, 2024 1
Move music to trash

from beets.

Comments (8)

justinmayer avatar justinmayer commented on July 23, 2024 1

I submitted PR #3796 to address this issue, adding safer file removal operations for users who have a trash executable on their systems. This provides the option for a safer user experience without adding yet another Python dependency.

from beets.

RollingStar avatar RollingStar commented on July 23, 2024

Problem

Run beet import on an album that's already in the library. Say Remove old. The old files are instantly deleted, not sent to the recycle bin. Recycle-binning deleted files is typical behavior; I can't think of any Windows program that doesn't do this for user-facing files.

Alternatively, a user-designated "Trash" folder in the library could be specified, but that's complicated.
(See: duplicates plugin)

Could a user-specified trash folder actually be easier than using a third-party dependency to manage trash on individual OSs? A config option could specify "delete instantly" or "send to custom trash folder: /library/trash" or something.

from beets.

jackwilsdon avatar jackwilsdon commented on July 23, 2024

Send2Trash looks like it might be good for this, although I'm not sure if it's worth adding another dependency for. Might be worth implementing as a plugin though.

from beets.

RollingStar avatar RollingStar commented on July 23, 2024

Where do the main developers stand on this now? Would either of these be accepted if a pull request was made?

  • Using send2trash to send trashed files to OS-level trash directory
  • Moving trashed files to a /trash/ folder within the beets library (or perhaps any user-specified path) for the user to manually examine and delete later

from beets.

sampsyo avatar sampsyo commented on July 23, 2024

I'm still in favor but not thrilled about a new core dependency to support it. I like the idea of a plugin, though!

from beets.

nathdwek avatar nathdwek commented on July 23, 2024

As a mainly linux guy, I didn't and still don't really feel the need for recycle-binning.
I am not that excited about a new dependency to the beets core either, and going around this by moving trashed files to a beets-specific path defeats the purpose of a recycle-bin to me (I understand it as a place you take a look at where you are in need of disk space, so that files are really deleted only when they need to be?).

I don't see anything against using send2trash in a plugin though!!

from beets.

austinarchibald avatar austinarchibald commented on July 23, 2024

I'm having this issue as well, on macOS. It is constantly deleting my files even though I never ask it to. Fortunately I have iTunes Match / Apple Music so everything is backed up in the cloud. But this is a nasty bug.

from beets.

jackwilsdon avatar jackwilsdon commented on July 23, 2024

This issue isn't about beets randomly deleting your files - it definitely shouldn't be doing that. Could you please open a new issue @austinarchibald?

from beets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.