Comments (8)
I am very sorry to hear that dua did indeed eat your laundry :(! What an oversight, and clearly a result of me being sloppy and trying to save time by not writing crucial tests.
Please update to the latest version, v2.1.8, which doesn't follow symbolic links to directories anymore.
from dua-cli.
I believe there is still something wrong, as I just had dua delete files I did not intend to delete.
from dua-cli.
Can you provide more details? Are the files you don't want to delete also symlinks to folders/files?
from dua-cli.
@vks I absolutely agree, dua
must not follow symlinks when deleting files. However, this was fixed in the latest version, and thus it's most important for us to learn which version you were effectively using. If that is indeed the latest one, I would hope you can provide a reproducible example so this (possibly new) issue can be fixed ASAP.
Thank you.
from dua-cli.
I was using a very recent version from my pull request yesterday (3baf7f3 plus updated dependencies).
I still need to investigate what exactly happened and whether I can reproduce it, but dua
certainly deleted many more files than I marked. I suspect it is related to symlinks, but it could be something else.
from dua-cli.
After further investigation, I don't think that this was ever fixed correctly. Currently, dua
uses path.metadata()
when deleting recursively, for which is_symlink
always returns false
! std::fs::symlink_metadata
should be used instead.
from dua-cli.
I hope this is really fixed in 2.1.11, as 2.1.9 ate my stuff again. And it's much worse this time.
from dua-cli.
@crides I believe it is fixed now, but please look at the code yourself. It uses symlink_metadata
instead of metadata
, so symlink detection should work now.
from dua-cli.
Related Issues (20)
- ARM build can't execute on `aarch64`
- Show real file size on systems with ZFS compression enabled.
- performance: dua-cli full scan takes way longer than gdu HOT 7
- Performance is constrained by single-core CPU speed when I/O does not depend on CPU HOT 4
- error[E0446]: crate-private type `FilesystemScan` in public interface HOT 5
- Interactive navigation for tree with millions of files is really slow HOT 5
- Got a trojan threat from Windows defender when using dua HOT 4
- `dua a` will get the all the sizes of its content if the argv is one directory instead of the directory itself
- Cursor line not visible with NO_COLOR HOT 2
- Exit warning
- dua doesn't show accuarate size less than 4.00 KiB
- 2.29 stopped working on Windows 7
- move to trash - IO deletion error HOT 6
- Dangerous CTRL+r hotkey HOT 5
- dua does not start on windows server 2022 HOT 3
- Show number of files and folders in overview and interactive mode HOT 2
- dua 2.29.0 fails to compile with rustc 1.80.0 HOT 9
- Please bring back the lock file! HOT 5
- Inlcusion in winget (Windows Package Manager) HOT 5
- Adding a new installation method to the README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dua-cli.