BurntSushi / walkdir

Rust library for walking directories recursively.
The Unlicense
1.21k stars 106 forks source link

Expose `device_num`? #111

Closed sanmai-NL closed 5 years ago

sanmai-NL commented 5 years ago

The new stay-on-the-same-filesystem toggle is great. Would it be acceptable now to allow access to the info which filesystem it is? There’s no public API for that.

An example where this is useful is when a user supplies a path to be scanned, resulting in a report. To enable an audit trail, the filesystem identifier this scan pertained to would ideally be recorded.

BurntSushi commented 5 years ago

I don't think so, no. The device number is not unconditionally recorded. If you need to build an audit trail, then just capture the metadata you need. It isn't much code. Or you can put that in a new crate.