Comments (1)
This feature is hard to design (especially to work the same on Linux and Windows).
-
The usefulness of the resulting hash file is questionable in the case, when two different directories are passed by command line (and both are stripped from the resulting paths):
> rhash --strip-path -H c:/dir1/* c:/dir2/* dir1_file1.txt dir2_file1.txt dir2_file2.txt
Before verifying such file, the user shall copy all files from the hashed directories into one directory.
-
In Linux/Unix wildcards are expanded by the shell and are passed to RHash already as separate files (not directories), so RHash can't detect from paths with wildcards which directory should be stripped from file paths.
I think the only way for RHash to work the same on all platforms is to strip only directories passed with recursive option (without wildcards support):
> rhash --recursive --strip-path -H c:/dir1/ c:/dir2/ dir1_subdirA/file1.txt dir2_subdirA/file1.txt dir2_subdirB/file2.txt
from rhash.
Related Issues (20)
- Checking with extensions on "--exclude" will still write said files on --output file HOT 1
- Feature request: add directive for hash function name in output HOT 3
- Fix build for NetBSD and other OS HOT 5
- Cannot find `librhash.so.1` after installation with custom `โprefix` HOT 3
- `--check path\file_with_hash` not working ("No such file or directory") with RHash 1.4.4 (ok with 1.4.3) [windows binaries] HOT 2
- `--speed` option: duration is always in seconds, even if it is longer than a minute
- link failure on platforms that require libiconv HOT 3
- man file doesn't get updated with custom config file location
- Build system is broken on macos HOT 1
- add algorithm: bittorrent v2 merkle root hash HOT 2
- Add `--preamble=<format>` output format option
- Symbolic links to files are shown with a size of zero bytes on Windows HOT 1
- Incompatible pointer to integer conversion in rhash.c HOT 3
- Permission denied - stops hash calculation when using --update
- Feature to remember successful hash algorithm when checking file
- Request for option to print/return only the hash value
- rhash -a -B not doing what I'd expect
- [feature request] add an option to exclude specified file from string matches
- Doesn't work with AWS-LC/BoringSSL HOT 1
- "No such file" error when checking hash on path with length of exactly 32 characters 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 rhash.