84 Commits

Author SHA1 Message Date
Ashley
f21855c5e3 Add osx build to .travis.yml (#72)
Add osx build to .travis.yml
2017-07-17 08:24:55 -04:00
Ashley
2ca0b13040 Added links to documentation (#71) 2017-07-17 08:23:47 -04:00
Jérémie Lawson
86238d6dde Removed is_same_file deprecated function. 2017-07-15 13:09:58 -04:00
Jérémie Lawson
f4de7b969a Remove re-export of is_same_file
Added a wrapper around this function that is deprecated.
Fixes #43.
2017-07-15 13:09:58 -04:00
Andy Gauge
378cb0742e Extended documentation to include Errors section for Iter (Iterator::next()), FilterEntry (Iterator::next()), and DirEntry::metadata() 2017-07-15 12:58:20 -04:00
Andy Gauge
f216fcb1e5 Added links to .into_iter() and .filter_entry() into respective Types. 2017-07-15 12:56:09 -04:00
Jakub Chłapiński
71ceae7fc0 WalkDir sorter should accept whole dir entries instead of just file names (#70)
change sort_by types

This changes the sort_by comparator function to accept a pair
of `&DirEntry`s, which permits the caller more flexibility with
sorting.

Fixes #44, Fixes #45
2017-07-15 12:54:56 -04:00
meven
009be825aa Add links to other walkdir items in WalkDirIterator docs (#73) 2017-07-15 12:49:46 -04:00
Alisha Aneja
c55dc9f4d5 Add links to other walkdir items in WalkDir docs
Fixes #29
2017-07-01 09:05:06 -04:00
Martin Sehnoutka
938b0fa064 Use ? in docs instead of unwrapping
Fixes: #25
2017-06-30 06:49:41 -04:00
Jonathan Soo
4e4c9c4f58 add example for contents_first
Fixes #26
2017-06-29 10:21:28 -04:00
Yufeng Wang
532e56d211 point to IntoIter's filter_entry instead 2017-06-29 09:35:26 -04:00
Yufeng Wang
a88d02cde4 Add links to DirEntry docs. Fixes #27 2017-06-29 09:35:26 -04:00
Yufeng Wang
92cec65086 add links to IntoIter and FilterEntry docs 2017-06-29 09:34:54 -04:00
Michal Budzynski
dbc7827237 Bumped the minimal required rust version to 1.16.0 2017-06-29 09:32:17 -04:00
nivkner
fb40eafaff Remove WalkDirIterator (#58)
remove WalkDirIterator

And make skip_current_dir and filter_entry inherent methods.

Fixes #40.
2017-06-27 06:58:19 -04:00
Thayne McCombs
133a11d538 Add badges for travis-ci and appveyor to Cargo.toml
Fixes #35

Doesn't add CI for OSX
2017-06-26 19:43:49 -04:00
Michal Budzynski
032f669a4b Added html_root_url attribute 2017-06-26 19:32:07 -04:00
Michal Budzynski
debdf7e565 Renamed IterFilterEntry to FilterEntry 2017-06-26 19:30:41 -04:00
Michal Budzynski
6a031649b9 Added categories to Cargo.toml 2017-06-26 19:29:57 -04:00
Michal Budzynski
8d2b9840b4 Renamed Iter to IntoIter 2017-06-26 19:29:19 -04:00
mcharsley
c43a71f536 Added contents_first option (#19)
Added contents_first option

Added ability to yield the contents of the directory before the
directory itself

Fixes #18
2017-05-08 19:03:58 -04:00
Petr Zemek
9f25bb2ec7 Fix typos in comments.
"ergnomics" -> "ergonomics"
2017-03-20 15:02:07 -04:00
Andrew Gallant
81438507f0 1.0.7 1.0.7 2017-01-08 21:40:26 -05:00
Andrew Gallant
d25d673a0a bump same-file dep to 0.1.1 2017-01-08 21:40:24 -05:00
Andrew Gallant
98859917e2 1.0.6 1.0.6 2017-01-08 20:39:53 -05:00
Andrew Gallant
6a49e22bd2 Expose inode number on DirEntry.
This passes through the inode number from fs::DirEntry.
2017-01-08 20:39:36 -05:00
Andrew Gallant
9695bbc3e0 1.0.5 1.0.5 2017-01-08 19:12:55 -05:00
Andrew Gallant
88566c4eb4 Use new same-file crate.
This replaces the homegrown `is_same_file` implementation with a
reusable implementation from an external crate.
2017-01-08 19:12:48 -05:00
Andrew Gallant
c2bbd8e796 tweak when CI runs 2017-01-08 18:03:20 -05:00
Andrew Gallant
0cff94002b Fix minimum Rust version.
Standard practice is to support two previous Rust releases. When walkdir
1.0.0 was released, Rust 1.12 had just come out. So support back to
1.10.
2017-01-08 16:20:43 -05:00
Andrew Gallant
dd51eec35c 1.0.4 1.0.4 2017-01-08 12:42:03 -05:00
Andrew Gallant
e9b3c586e2 Merge pull request #17 from BurntSushi/cleanup
Various Windows related cleanups.
2017-01-08 12:41:46 -05:00
Andrew Gallant
6bc65dd367 Various Windows related cleanups.
This modifies some of the test infrastructure so that more tests can
work on Windows. Specifically, we can now write tests that use symlinks
and still run on Windows.

We also clean up the implementation of `is_same_file` by reusing
types/functions from the kernel32 and winapi crates. Also, add a few
tests for this function.
2017-01-08 12:33:16 -05:00
Andrew Gallant
77fcf15126 1.0.3 1.0.3 2016-12-05 20:02:47 -05:00
Andrew Gallant
658f4148a7 Merge pull request #15 from BurntSushi/fix-root-symlink
Fix bug reading root symlink.
2016-12-05 20:02:27 -05:00
Andrew Gallant
373278952f Fix bug reading root symlink.
When given a root like `foo` where `foo` is a symlink, it should always
be followed. This behavior is consistent with `foo/`, which will also be
followed.

See also: https://github.com/BurntSushi/ripgrep/issues/256
2016-12-05 19:53:43 -05:00
Andrew Gallant
a36d60f423 1.0.2 1.0.2 2016-11-24 10:15:15 -05:00
Andrew Gallant
c40025c5f3 Use docs.rs in documentation link.
Fixes #14
2016-11-24 10:14:59 -05:00
Andrew Gallant
6ed0173e51 Merge pull request #12 from Ryman/old-bugref
Remove reference to a bug which has been fixed
2016-10-31 19:12:59 -04:00
Kevin Butler
da8c02d4d5 Remove reference to a bug which has been fixed
Since the minimum supported rustc version has this fix[1] we can
remove the reference.

[1] https://github.com/rust-lang/rust/pull/31630
2016-10-31 22:52:13 +00:00
Andrew Gallant
f03bbd3254 1.0.1 1.0.1 2016-10-29 12:32:39 -04:00
Andrew Gallant
15e2fb761e update Cargo.toml directions 2016-10-29 12:32:38 -04:00
Andrew Gallant
29c86b2fd5 1.0.0 1.0.0 2016-10-29 12:31:58 -04:00
Andrew Gallant
5ecbde1679 update readme 2016-10-29 12:30:11 -04:00
Andrew Gallant
442cc23183 Bump minimum Rust version. 2016-10-29 12:28:31 -04:00
Andrew Gallant
737af4f2d5 Expose is_same_file function.
A case could be made for splitting this out into a separate crate,
but I'm fine with keeping it part of walkdir for now.
2016-10-29 12:28:02 -04:00
Andrew Gallant
47271fba42 Merge pull request #7 from azdle/master
only depend on windows deps on windows
2016-10-29 12:27:46 -04:00
Andrew Gallant
790b7a5fe2 0.1.8 0.1.8 2016-09-16 17:54:53 -04:00
Andrew Gallant
7b73fde972 Stop storing the underlying fs::DirEntry.
An fs::DirEntry is in fact quite large---over 256 bytes. This results in
a lot of time spent memmoving it around.

This does result in a small performance regression on Windows for callers
that ask for the `metadata` of a directory entry.
2016-09-16 17:54:43 -04:00