Comments (1)
Turns out this was expected because it's how linux makes sense of paths. For example, /my/path/
will resolve my
if it's a symlink and therefore behaves the same way if path
is a symlink. However, for deletion this isn't what you want: what does it even mean to delete the contents of a directory through a symlink? Do you delete the symlink at the end? The original directory? Both?
Anyway, the safer thing to do is to simply strip trailing slashes so we always delete the symlink. Note that I'm sure some LInux guru will eventually come along and tell me this behavior is wrong and you sometimes actually need the trailing slash for something. I'm going to wait until that happens before adding configuration options.
from fuc.
Related Issues (20)
- [rmz] Symbolic Links HOT 1
- Get rid of support for non-linux OSes? HOT 1
- [cpz] Symbolic Links HOT 21
- Future request - progress bar HOT 8
- rust 1.61.0 support HOT 12
- cargo install rmz cpz fails HOT 3
- +1 HOT 1
- cross-file system move HOT 4
- Feature request: support `cpz -t`/`cpz -T` HOT 9
- Feature request: preserve permissions option HOT 3
- Feature request: verbose output HOT 3
- Add -i / --interactive flags HOT 2
- Put it on homebrew HOT 3
- Neverending copy to sshfs mount HOT 5
- How do I learn about knowledge behind this project? HOT 3
- How to make benchmarks run fine on windows? HOT 12
- Can't remove deeply nested folders with rmz HOT 4
- os error 22 while copying a simple directory HOT 7
- add option to rename top directory before recursive delete HOT 3
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 fuc.