Git Product home page Git Product logo

Comments (8)

rhash avatar rhash commented on May 27, 2024

Does the --accept option is really not enough? I need a reason to add the feature.

Also some things shall be resolved.

  1. The --exclude option can be implimented like --accept in very dumb way - it will take a list of comma delimited file suffixes (extensions). RHash currently doesn't supports file masks or regex'es for simplicity and portability reasons.
  2. If a user specify both --accept and --exlude options than the exlude should apply after accept.
  3. RHash has separate --accept-crc option for the --check mode, so it look that somebody will ask for an --exclude-crc.

from rhash.

xbeta avatar xbeta commented on May 27, 2024

@rhash I have an unknown number of files/folders to traverse and they are outside of my control on how they were updated, but I do have only 1 file that I know for sure that I want to exclude. So I think there's a valid use case for it.

from rhash.

rhash avatar rhash commented on May 27, 2024

Ok, it's a good reason. I've put the feature request into the todo list.

Just to note, it's better to ask for features on the sourceforge project page to keep them in one place.

from rhash.

rhash avatar rhash commented on May 27, 2024

The --exclude option is now supported in Rhash v1.3.3.

from rhash.

xbeta avatar xbeta commented on May 27, 2024

@rhash thanks man, will test it out!

from rhash.

kvz avatar kvz commented on May 27, 2024

I just tested this and it works in v1.3.3, but it's not in the --help yet, just a friendly tip:

$ rhash --version && rhash --help |grep ex
RHash v1.3.3
  -V, --version Print program version and exit.

from rhash.

newhoa avatar newhoa commented on May 27, 2024

Is there any way to get --exclude to allow excluding listed directories? When hashing in recursive mode sometimes there may be certain time-consuming but irrelevant subdirectories you'd like to ignore. Thanks.

from rhash.

rhash avatar rhash commented on May 27, 2024

@newhoa the --exclude option works only for files, for excluding directories you should apply shell script magic using find/grep/xargs e.t.c.

from rhash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.