lapce icon indicating copy to clipboard operation
lapce copied to clipboard

Unable to delete directory

Open Zettexe opened this issue 1 year ago • 4 comments

Lapce Version

Version 0.2.0

System information

Windows 10

Describe the bug

Unable to delete folder if it contains a directory and a file within that directory.

Additional information

Selecting Move directory to trash on dir1 does not do anything image

Zettexe avatar Sep 15 '22 08:09 Zettexe

Might be a Windows related bug. Moving dir1 to trash does work on Linux, at least on Fedora 36.

LukaOber avatar Sep 15 '22 18:09 LukaOber

Might be a bug in https://github.com/Byron/trash-rs since it implements moving to bin.

bugadani avatar Sep 20 '22 19:09 bugadani

Is it possible that another program had this directory open?

I noticed the same behavior when tring to rename a dir. I did not realize my debugger was still open and was using it. Just tested that and if nothing uses that dir i want to delete, it works fine on windows 11.

An error message would be helpfull in this case.

LeFoenk avatar Oct 15 '22 18:10 LeFoenk

Is it possible that another program had this directory open?

Not in my test case, I created an entirely new folder structure and immediately attempted to delete it using lapce to make sure that wasn't a factor

Zettexe avatar Oct 15 '22 19:10 Zettexe