diff options
Diffstat (limited to 'cli/file_watcher.rs')
-rw-r--r-- | cli/file_watcher.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/file_watcher.rs b/cli/file_watcher.rs index 4a3471f22..c7fff4632 100644 --- a/cli/file_watcher.rs +++ b/cli/file_watcher.rs @@ -1,6 +1,8 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. use crate::colors; +use crate::fs_util::canonicalize_path; + use deno_core::error::AnyError; use deno_core::futures::stream::{Stream, StreamExt}; use deno_core::futures::Future; @@ -231,7 +233,7 @@ fn new_watcher( let paths = event .paths .iter() - .filter_map(|path| path.canonicalize().ok()); + .filter_map(|path| canonicalize_path(path).ok()); let mut changed_paths = changed_paths.lock(); changed_paths.extend(paths); } |