Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rafaelmdcarneiro/walkdir-rs
/ functions
Functions
136 in github.com/Rafaelmdcarneiro/walkdir-rs
⨍
Functions
136
◇
Types & classes
16
↓ 46 callers
Method
run_recursive
Run the given iterator and return the result as a distinct collection of directory entries and errors.
src/tests/util.rs:101
↓ 45 callers
Method
path
Return the path to this directory.
src/tests/util.rs:90
↓ 42 callers
Method
mkdirp
Create a directory at the given path, while creating all intermediate directories as needed.
src/tests/util.rs:117
↓ 40 callers
Method
assert_no_errors
Assert that no errors have occurred.
src/tests/util.rs:35
↓ 26 callers
Method
join
Return a path joined to the path to this directory.
src/tests/util.rs:95
↓ 18 callers
Method
touch
Create an empty file at the given path. All ancestor directories must already exists.
src/tests/util.rs:128
↓ 14 callers
Method
follow_links
Follow symbolic links. By default, this is disabled. When `yes` is `true`, symbolic links are followed as if they were normal directories and files.
src/lib.rs:346
↓ 14 callers
Method
path
The full path that this entry represents. The full path is created by joining the parents of this entry up to the root initially given to [`WalkDir::
src/dent.rs:77
↓ 14 callers
Method
sorted_ents
Return all the successfully retrieved directory entries, sorted lexicographically by their full file path.
src/tests/util.rs:58
↓ 12 callers
Method
file_name
Return the file name of this entry. If this entry has no file name (e.g., `/`), then the full path is returned.
src/dent.rs:166
↓ 12 callers
Method
symlink_dir
Create a directory symlink to the given src with the given link name.
src/tests/util.rs:177
↓ 11 callers
Method
clone
(&self)
src/dent.rs:299
↓ 10 callers
Method
file_type
Return the file type for the file that this entry points to. If this is a symbolic link and [`follow_links`] is `true`, then this returns the type of
src/dent.rs:158
↓ 7 callers
Method
ents
Return all the successfully retrieved directory entries in the order in which they were retrieved.
src/tests/util.rs:45
↓ 7 callers
Method
max_depth
Set the maximum depth of entries yield by the iterator. The smallest depth is `0` and always corresponds to the path given to the `new` function on t
src/lib.rs:327
↓ 7 callers
Method
sort_by
Set a function for sorting directory entries with a comparator function. If a compare function is set, the resulting iterator will return all paths i
src/lib.rs:417
↓ 6 callers
Method
into_iter
(self)
src/lib.rs:540
↓ 6 callers
Method
is_dir
Returns true if and only if this entry points to a directory.
src/dent.rs:180
↓ 6 callers
Method
min_depth
Set the minimum depth of entries yielded by the iterator. The smallest depth is `0` and always corresponds to the path given to the `new` function on
src/lib.rs:310
↓ 6 callers
Method
next
Advances the iterator and returns the next value. # Errors If the iterator fails to retrieve the next value, this method returns an error value. The
src/lib.rs:687
↓ 6 callers
Method
symlink_file
Create a file symlink to the given src with the given link name.
src/tests/util.rs:146
↓ 4 callers
Method
max_open
Set the maximum number of simultaneously open file descriptors used by the iterator. `n` must be greater than or equal to `1`. If `n` is `0`, then it
src/lib.rs:395
↓ 4 callers
Method
pop
(&mut self)
src/lib.rs:950
↓ 4 callers
Method
push
(&mut self, dent: &DirEntry)
src/lib.rs:901
↓ 4 callers
Method
skip_current_dir
Skips the current directory. This causes the iterator to stop traversing the contents of the least recently yielded directory. This means any remaini
src/lib.rs:781
↓ 4 callers
Method
touch_all
Create empty files at the given paths. All ancestor directories must already exists.
src/tests/util.rs:139
↓ 3 callers
Method
depth
Returns the depth at which this entry was created relative to the root. The smallest depth is `0` and always corresponds to the path given to the `ne
src/dent.rs:175
↓ 3 callers
Method
errs
Return all of the errors encountered during traversal.
src/tests/util.rs:30
↓ 3 callers
Method
follow_root_links
Follow symbolic links if these are the root of the traversal. By default, this is enabled. When `yes` is `true`, symbolic links on root paths are fol
src/lib.rs:365
↓ 3 callers
Function
parse_usize
( parsed: &clap::ArgMatches, flag: &str, )
walkdir-list/main.rs:289
↓ 3 callers
Method
walkdir
(&self, path: &Path)
walkdir-list/main.rs:268
↓ 2 callers
Method
contents_first
Yield a directory's contents before the directory itself. By default, this is disabled. When `yes` is `false` (as is the default), the directory is y
src/lib.rs:517
↓ 2 callers
Function
device_num
(path: P)
src/util.rs:5
↓ 2 callers
Method
get_deferred_dir
(&mut self)
src/lib.rs:884
↓ 2 callers
Method
handle_entry
( &mut self, mut dent: DirEntry, )
src/lib.rs:840
↓ 2 callers
Method
ino
Returns the underlying `d_ino` field in the contained `dirent` structure.
src/dent.rs:349
↓ 2 callers
Method
metadata
Return the metadata for the file that this entry points to. This will follow symbolic links if and only if the [`WalkDir`] value has [`follow_links`]
src/dent.rs:126
↓ 2 callers
Function
print_paths
( args: &Args, mut stdout: W1, mut stderr: W2, )
walkdir-list/main.rs:83
↓ 2 callers
Method
same_file_system
Do not cross file system boundaries. When this option is enabled, directory traversal will not descend into directories that are on a different file
src/lib.rs:530
↓ 2 callers
Method
skippable
(&self)
src/lib.rs:1000
↓ 2 callers
Function
write_os_str
(mut wtr: W, os: &OsStr)
walkdir-list/main.rs:305
↓ 1 callers
Method
check_loop
(&self, child: P)
src/lib.rs:973
↓ 1 callers
Method
close
(&mut self)
src/lib.rs:1008
↓ 1 callers
Method
depth
Returns the depth at which this error occurred relative to the root. The smallest depth is `0` and always corresponds to the path given to the [`new`
src/error.rs:81
↓ 1 callers
Method
filter_entry
Yields only entries which satisfy the given predicate and skips descending into directories that do not satisfy the given predicate. The predicate is
src/lib.rs:833
↓ 1 callers
Method
into_path
The full path that this entry represents. Analogous to [`path`], but moves ownership of the path. [`path`]: struct.DirEntry.html#method.path
src/dent.rs:86
↓ 1 callers
Method
is_same
(&self, child: &Handle)
src/lib.rs:639
↓ 1 callers
Method
metadata_internal
(&self)
src/dent.rs:131
↓ 1 callers
Method
parse
()
walkdir-list/main.rs:172
↓ 1 callers
Method
path
Returns the path associated with this error if one exists. For example, if an error occurred while opening a directory handle, the error will include
src/error.rs:46
↓ 1 callers
Function
print_count
( args: &Args, mut stdout: W1, mut stderr: W2, )
walkdir-list/main.rs:57
↓ 1 callers
Function
print_paths_flat
( args: &Args, mut stdout: W1, mut stderr: W2, dir: &Path, )
walkdir-list/main.rs:102
↓ 1 callers
Function
print_paths_tree
( args: &Args, mut stdout: W1, mut stderr: W2, dir: &Path, )
walkdir-list/main.rs:128
↓ 1 callers
Method
sort_by_file_name
Sort directory entries by file name, to ensure a deterministic order. This is a convenience function for calling `Self::sort_by()`. ```rust,no_run u
src/lib.rs:456
↓ 1 callers
Method
sort_by_key
Set a function for sorting directory entries with a key extraction function. If a compare function is set, the resulting iterator will return all pat
src/lib.rs:439
↓ 1 callers
Method
source
(&self)
src/error.rs:212
↓ 1 callers
Function
try_main
()
walkdir-list/main.rs:38
↓ 1 callers
Function
write_path
(wtr: W, path: &Path)
walkdir-list/main.rs:301
Function
assert_send
()
src/tests/recursive.rs:11
Function
assert_sync
()
src/tests/recursive.rs:12
Function
broken_sym_root_dir_follow_and_root_nofollow
()
src/tests/recursive.rs:402
Function
broken_sym_root_dir_nofollow_and_root_nofollow
()
src/tests/recursive.rs:386
Function
broken_sym_root_dir_root_is_always_followed
()
src/tests/recursive.rs:419
Method
cause
(&self)
src/error.rs:208
Function
contents_first
()
src/tests/recursive.rs:891
Method
description
(&self)
src/error.rs:201
Function
display_info
compare/nftw.c:8
Method
drop
(&mut self)
src/tests/util.rs:217
Function
empty
()
src/tests/recursive.rs:23
Function
empty_file
()
src/tests/recursive.rs:55
Function
empty_file_follow
()
src/tests/recursive.rs:73
Function
empty_follow
()
src/tests/recursive.rs:39
Function
filter_entry
()
src/tests/recursive.rs:930
Method
fmt
( &self, f: &mut fmt::Formatter<'_>, )
src/lib.rs:258
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/dent.rs:332
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/error.rs:221
Method
follow
(&self, mut dent: DirEntry)
src/lib.rs:961
Method
from
Convert the [`Error`] to an [`io::Error`], preserving the original [`Error`] as the ["inner error"]. Note that this also makes the display of the erro
src/error.rs:253
Method
from_entry
( depth: usize, ent: &fs::DirEntry, )
src/dent.rs:185
Method
from_entry
(dent: &DirEntry, err: io::Error)
src/error.rs:170
Method
from_io
(depth: usize, err: io::Error)
src/error.rs:180
Method
from_loop
( depth: usize, ancestor: &Path, child: &Path, )
src/error.rs:184
Method
from_path
( depth: usize, pb: PathBuf, follow: bool, )
src/dent.rs:230
Method
from_path
( depth: usize, pb: PathBuf, err: io::Error, )
src/error.rs:162
Method
imp
(src: &Path, link_name: &Path)
src/tests/util.rs:152
Method
into_io_error
Similar to [`io_error`] except consumes self to convert to the original [`io::Error`] if one exists. [`io_error`]: struct.Error.html#method.io_error
src/error.rs:155
Method
io_error
Inspect the original [`io::Error`] if there is one. [`None`] is returned if the [`Error`] doesn't correspond to an [`io::Error`]. This might happen,
src/error.rs:143
Method
is_same_file_system
(&mut self, dent: &DirEntry)
src/lib.rs:991
Method
loop_ancestor
Returns the path at which a cycle was detected. If no cycle was detected, [`None`] is returned. A cycle is detected when a directory entry is equiva
src/error.rs:66
Function
main
compare/nftw.c:16
Function
main
()
walkdir-list/main.rs:31
Function
many_dirs
()
src/tests/recursive.rs:165
Function
many_files
()
src/tests/recursive.rs:145
Function
many_mixed
()
src/tests/recursive.rs:186
Function
max_depth_0
()
src/tests/recursive.rs:811
Function
max_depth_1
()
src/tests/recursive.rs:824
Function
max_depth_2
()
src/tests/recursive.rs:837
Function
min_depth_1
()
src/tests/recursive.rs:785
Function
min_depth_2
()
src/tests/recursive.rs:798
Function
min_max_depth_diff_0
()
src/tests/recursive.rs:865
next →
1–100 of 136, ranked by callers