diff options
author | rabite <rabite@posteo.de> | 2019-03-02 19:39:24 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-03-02 23:28:03 +0100 |
commit | eb5a86b7cd37dc39d20f6ce122f671f94f51b75a (patch) | |
tree | a60e83dca33a46ebcc367dbfe98c2e8250210289 /src/files.rs | |
parent | e2acef5ddfa5c7bf470aee5e24f429eabfb17951 (diff) |
moved window stuff to widget itself
Diffstat (limited to 'src/files.rs')
-rw-r--r-- | src/files.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/files.rs b/src/files.rs index 44863e6..fe0dc8b 100644 --- a/src/files.rs +++ b/src/files.rs @@ -2,17 +2,18 @@ use std::cmp::{Ord, Ordering}; use std::ops::Index; use std::os::unix::fs::MetadataExt; use std::path::{Path, PathBuf}; +use std::sync::{Arc, Mutex}; use lscolors::LsColors; use mime_detective; use users; use chrono::TimeZone; use failure::Error; -use notify::{INotifyWatcher, Watcher, DebouncedEvent, RecursiveMode}; +use notify::DebouncedEvent; use crate::fail::{HResult, HError}; -use std::sync::{Arc, Mutex}; + lazy_static! { @@ -200,7 +201,7 @@ impl Files { DebouncedEvent::Write(path) | DebouncedEvent::Chmod(path) => { self.path_in_here(&path)?; let file = self.find_file_with_path(&path)?; - file.reload_meta(); + file.reload_meta()?; }, DebouncedEvent::Remove(path) => { self.path_in_here(&path)?; |