Comments (7)
Right now there is no special handling of symbolic links, and counting them at all as the files they point to is something I would want to avoid in future. Right now DUA relies on the file metadata provided by the metadata()
call of the Rust std, which follows symbolic links.
from dua-cli.
I think this is very dangerous, because recursive deleting may follow the links, possibly deleting the whole home folder.
from dua-cli.
Indeed, traversal follows symlinks. Additionally, symlinks are not currently displayed as such and appear like real files. The latter can certainly be fixed during display, as a first step towards making it more clear what's going on. Not following symlinks at all would require a change in the jwalk
create I believe.
However, when deleting files and directories, dua
will not follow symbolic links and behave as one would expect. This fix was introduced in v2.1.9
.
from dua-cli.
Not following symlinks at all would require a change in the jwalk create I believe.
That is true, but I think it only applies to the non-interactive mode of dua
.
However, when deleting files and directories, dua will not follow symbolic links and behave as one would expect. This fix was introduced in v2.1.9.
I think the fix was not correct, see #27.
from dua-cli.
Also see Byron/jwalk#7.
from dua-cli.
This issue should be fixed now for the interactive mode, for the aggregate mode this needs to be fixed in jwalk first.
from dua-cli.
As symbolic links are not followed, this issue should.
There is still a special case which is dua
or dua *
, which is when it ignores top-level symbolic links entirely. That can be confusing, as one would still expect them to show up like any other symbolic link. If this is an issue, a new one could be opened for that alone.
Thank you
from dua-cli.
Related Issues (20)
- Unable to build on android termux HOT 4
- [Issue] Missing binary for Linux in release 2.20.0 HOT 3
- Replace tui with ratatui HOT 1
- Output layout difference between macOS build and linux build HOT 4
- Trouble installing on Ubuntu. Cannot run as sudo HOT 1
- alignment off when in interactive mode and -f binary HOT 9
- Home/End keys don't work in help or mark panes HOT 5
- `dua` doesn't count dot directory if I specify a path argument HOT 1
- configurable keybindings HOT 4
- `#![feature]` may not be used on the stable release channel HOT 2
- Scanning stucks on macOS 14.0 HOT 6
- How to set the user default config?
- After using "dua i", how to move files or folders that do not need to be deleted?
- APFS Clones Support
- dua (non interactive) lost its ability to process files HOT 3
- Multiple dirs in --ignore-dirs not working as expected HOT 8
- Test fails on 32-bit targets HOT 1
- Duplicate key input on Windows since v2.23.0 HOT 5
- termion backend no longer works HOT 2
- Large graphs question
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.