Fd: Feature request: library option

Created on 20 Dec 2017  路  2Comments  路  Source: sharkdp/fd

I'd really like to use fd's powerful finding in my Rust application, but it's only available as a binary.

I could call it as a subprocess, but that's really awkward and requires installing another binary and... having it as a library would be a lot simpler.

question

Most helpful comment

Thank you very much for your feedback!

To be honest, I'm not sure if this would currently be worth the effort.

What kind of functionality would you like to see from this library?

  • If you need something to walk a directory tree recursively (with support for .gitignore files, etc.), you should take a look at the ignore crate which is used by fd.
  • If you need pattern matching on file names in addition, it would probably still be quite easy to use the ignore and regex crates on your own.

All 2 comments

Thank you very much for your feedback!

To be honest, I'm not sure if this would currently be worth the effort.

What kind of functionality would you like to see from this library?

  • If you need something to walk a directory tree recursively (with support for .gitignore files, etc.), you should take a look at the ignore crate which is used by fd.
  • If you need pattern matching on file names in addition, it would probably still be quite easy to use the ignore and regex crates on your own.

Closing this for now, until there is any feedback from @zekesonxx

Was this page helpful?
0 / 5 - 0 ratings

Related issues

christianbundy picture christianbundy  路  3Comments

hungptit picture hungptit  路  3Comments

blueray453 picture blueray453  路  3Comments

mathomp4 picture mathomp4  路  3Comments

ChengCat picture ChengCat  路  3Comments