walk.rs
Contains an unbounded block loopRust test marker or harness
SHA-25677056b0cdce44aa0836424510fc2eafd17340ecaef69378419e8f48bf2da8d1a
MaleculeO(Ca)H₂(Db₂F₄)Md₂(In₁₃Pa)
Evidence
1use std::cmp;
2use std::ffi::OsStr;
3use std::fmt;
4use std::fs::{self, FileType, Metadata};
5use std::io;
6use std::path::{Path, PathBuf};
7use std::sync::Arc;
8use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
9use std::thread;
10use std::time::Duration;
11use std::vec;
12
13use channel;
14use same_file::Handle;
15use walkdir::{self, WalkDir};
16
17use dir::{Ignore, IgnoreBuilder};
18use gitignore::GitignoreBuilder;
19use overrides::Override;
20use types::Types;
21use {Error, PartialErrorBuilder};
22
23/// A directory entry with a possible error attached.
24///
25/// The error typically refers to a problem parsing ignore files in a
26/// particular directory.
27#[deriv …
224 #[cfg(unix)]
225 fn ino(&self) -> Option<u64> {
226 use walkdir::DirEntryExt;
227 use self::DirEntryInner::*;
228 match *self {
229 Stdin => None,
230 Walkdir(ref x) => Some(x.ino( …
369:13… fs::FileType,
370 ) -> Result<DirEntryRaw, Error> {
371 use std::os::unix::fs::DirEntryExt;
372
373 Ok(DirEntryRaw {
⋯4 lines
404:7… link: bool,
405 ) -> Result<DirEntryRaw, Error> {
406 use std::os::unix::fs::MetadataExt;
407
408 let md = fs::metadata(&pb).map_err(|err| {
409 Error::Io(err).with_path(&pb)
410 })?;
411 Ok(DirEntry …
732:33… ` config option.
733 ///
734 /// Git's config file location is `$HOME/.gitconfig`. If `$HOME/.gitconfig`
735 /// does not exist or does not specify `core.excludesFile`, then
736 /// `$XDG_CONFIG_HOME/git/ignor …