Don't watch dirs if not asked to
This commit is contained in:
parent
1a3b507a00
commit
089ea36b2e
@ -199,7 +199,7 @@ impl LoaderActor {
|
||||
let is_dir = entry.file_type().is_dir();
|
||||
let is_file = entry.file_type().is_file();
|
||||
let abs_path = AbsPathBuf::try_from(entry.into_path()).unwrap();
|
||||
if is_dir {
|
||||
if is_dir && watch {
|
||||
self.watch(abs_path.clone());
|
||||
}
|
||||
let rel_path = abs_path.strip_prefix(&path)?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user