diff --git a/src/context.rs b/src/context.rs index 46c51177..6faa7884 100644 --- a/src/context.rs +++ b/src/context.rs @@ -177,6 +177,10 @@ pub struct DirContents { } impl DirContents { + fn from_path(base: &PathBuf) -> Result { + Self::from_path_with_timeout(base, Duration::from_secs(30)) + } + fn from_path_with_timeout(base: &PathBuf, timeout: Duration) -> Result { let start = SystemTime::now();