Comments (6)
I'm afraid Windows default shell doesn't expand wildcards.
https://superuser.com/questions/460598/is-there-any-way-to-get-the-windows-cmd-shell-to-expand-wildcard-paths
You can use a combination of -R
and --paths ...
or --names ...
to perform globbing with the builtin glob/regex support.
from fclones.
Could you fix the documentation and error message? The current error message is quite misleading.
from fclones.
The error message is created from the template: Failed to stat <path>: <reason>
The second part (reason) after the colon comes from the operating system. I can't fix it.
I can improve only the first part a bit. I guess "stat" is a Unix/Linux only thing.
What about Failed to read metadata of <path>: <reason>
?
from fclones.
I don't think changing wording would help much. I wouldn't have guessed that the program is trying to use '*' as a file name. And even if I realized what the program tried to do, I wouldn't know what to do about it.
You could do something like:
if path contains '*':
log warning 'It looks like your shell does not support expanding wildcards. Try using --paths or --names. See https://git.io/JJCLH for more information.'
from fclones.
I like your suggesion, although I can imagine the warning could be also wrong and misleading - there is no reliable way of determining if the given file system accepts * (or any other character) as part of the path. E.g. on Linux * is a perfectly valid character in a path. The tool does not know if the user wanted to treat * as a wildcard, or maybe they wanted a literal *.
I can also imagine the above code could raise the warning even under shells that do support wildcard expansion.
E.g. this is a valid command under bash:
fclones -R '*'
(search all contents in the directory named * )
from fclones.
Thanks :)
from fclones.
Related Issues (20)
- Partially matches HOT 1
- Don't lose the cache if interrupted
- Change to group progress output in 0.33.0 breaks piping to file via stdout HOT 2
- fclones depends on libc6:amd64 (>= 2.36) HOT 4
- On android, running on termux, hard or soft link creation fails after creating the dupes file.
- Hard links are reported as duplicates
- Feedback, showdown against 3 other tools HOT 4
- How to find AND isolate/extract unique files that are in one directory but not another? HOT 2
- Add ability to filter by magic HOT 1
- How to deduplicate and compress?
- Sort file chunks instead of hashing HOT 1
- fclones scans a ton of files that have no chance of matching HOT 4
- fclones `move` ignores standard format log from `group`?
- /var/lib/snapd/void: Permission denied HOT 1
- ARM binary HOT 1
- group output according to order on command line
- "remove" does not work if some files have future modification dates HOT 2
- Why hash whole files? HOT 2
- hard links treated as duplicates
- Pattern matching doesn't work at all on Windows HOT 1
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 fclones.