Giter VIP home page Giter VIP logo

Comments (6)

mortensassi avatar mortensassi commented on July 25, 2024 2

Can confirm,

macOS 10.14.3
bash 5.0.3(1)-release (x86_64-apple-darwin18.2.0)
node 10.15.0
npm 6.4.1

You see the file gets removed but the bin still is empty, thank god i deleted only a testfile

from trash-cli.

jakewies avatar jakewies commented on July 25, 2024 1

Hey all, I used trash-cli on macOS for a long time with no issues. When running trash ... the file/dir in question would successfully make it to macOS's trash. However I recently started a dev environment in WSL 2 using Ubuntu and when running trash ... on a file/dir I can confirm that the content in question does not make it to the Windows Recycle Bin. This could be a disconnect with WSL. I can locate the deleted contents in ~/.local/share/Trash, where there is both a /files and /info directory. The names of the files have been changed to UUIDs, and I'm sure for good reason. It would be cool to have them appear in the Recycle Bin, and I'm not sure how this impacts storage moving forward, but that's the current state of the tool on WSL 2 with Ubuntu.

EDIT: If you check out the Info section in the README of the trash tool that @sindresorhus has created, you'll see the methodologies used for each OS:

On macOS, macos-trash is used.
On Linux, the XDG spec is followed.
On Windows, recycle-bin is used.

Still haven't reached the best solution for myself but just trying to understand more at the moment.

EDIT 2: I've come to the conclusion that using WSL 2 on a Windows machine will not give me the "peace of mind" that trash-cli will trash files to Windows Recycle Bin. It is two separate "environments".

EDIT 3: For those that want some more background, I wrote up a quick post on how you can delete trashed files in WSL using Sindre's tools.

from trash-cli.

Lazerbeak12345 avatar Lazerbeak12345 commented on July 25, 2024

Also happens on Fedora 30, node v10.16.3, npm 6.11.3.

from trash-cli.

gbs4ever avatar gbs4ever commented on July 25, 2024

I have the same problem with WSL both for bash and ZSH , the file is removed but does not end up in Recycle Bin

from trash-cli.

splinekonstantin avatar splinekonstantin commented on July 25, 2024

Have the same problem with WSL. Using zsh shell through Cmder. trash a folder but it didn't appear in a Recycle bin.
Also, have no Trash folder in ~/.local/share.
Don't know where my deleted folder has gone, gladly it was a test-one.
node 13.6.0
npm 6.13.4

from trash-cli.

axhamre avatar axhamre commented on July 25, 2024

Same thing here, deleted files and folders don't show up in the Bin.

  • Apple M1 Pro
  • macOS 13

from trash-cli.

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.