Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Unable to delete files over network on macOS #1046

Open
TeapotNickS opened this issue Mar 15, 2017 · 7 comments
Open

Unable to delete files over network on macOS #1046

TeapotNickS opened this issue Mar 15, 2017 · 7 comments

Comments

@TeapotNickS
Copy link

TeapotNickS commented Mar 15, 2017

Description

I have a project loaded over a local network and I am not able to delete files, I get an error "Is Trash enabled on the volume where the files are stored"

It looks like the issue is simply that the networked machine doesn't have a trash bin however this means that any file that I need to delete needs to be done via Finder.

This seems very similar to #856 but I was asked to open a new bug for macOS by @50Wliu

Steps to Reproduce

  1. Load project into Atom over a network drive
  2. Delete a file
  3. thats all the error will be shown
    screen shot 2017-03-15 at 15 30 05

Expected behavior: [File should be deleted]

Actual behavior: [Error is shown.]

Reproduces how often: [100%]

Versions

Atom 1.16.0-beta0 x64
macOS Sierra 10.12.3

@50Wliu
Copy link
Contributor

50Wliu commented Mar 15, 2017

I believe on macOS Trash is enabled by the existence of a /.Trash-1000 folder. Are you able to create that folder using the following commands?

sudo mkdir /.Trash-1000
sudo chown user:user ./Trash-1000

(This actually looks like #345; if so, sorry for asking you to create a new issue. I didn't find #345 in time as it's missing the mac label.)

@TeapotNickS
Copy link
Author

Not a problem, thanks for the fast replies.

When I delete files via Finder they get permanently deleted and not put in the trash (which is expected) If however you are on the server and delete a file they are put in the trash which makes sense to me.

I wouldn't actually want deleted files/folders put into a remote trash folder as someone would need to clear out the trash otherwise it could become a very large trash folder.

A good solution would be for Atom to try and move it to trash but if that isn't possible show a permanent delete button or something similar that allows the files to be deleted.

Perhaps this could be considered for the next version?

@naterexw
Copy link

naterexw commented Dec 8, 2017

This solved the problem for me

@dotku
Copy link

dotku commented Sep 22, 2018

@naterexw It doesn't work for me; anyone resolve this?

@geoffhouse
Copy link

I still have this problem (and the linked solution has a broken link now)

@mrv20
Copy link

mrv20 commented Mar 4, 2019

I also have this problem (OS X 10.14.3, Atom 1.34.0)

Edit: After reading the linked Windows issue it appears there is no intention to fix this behaviour in the core editor. The workaround is to install the permanent-delete package.

@Markj89
Copy link

Markj89 commented May 10, 2019

Open your IDE cd into the file and then use rm -rf <your-file> to delete it through there. Yuu can use platformio-ide-terminal for this as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants