diff options
Diffstat (limited to 'src/DirectoryMonitor.vala')
-rw-r--r-- | src/DirectoryMonitor.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DirectoryMonitor.vala b/src/DirectoryMonitor.vala index a37b124..19992dd 100644 --- a/src/DirectoryMonitor.vala +++ b/src/DirectoryMonitor.vala @@ -60,7 +60,7 @@ public class DirectoryMonitor : Object { public const int DEFAULT_PRIORITY = Priority.LOW; public const FileQueryInfoFlags DIR_INFO_FLAGS = FileQueryInfoFlags.NONE; - public const FileQueryInfoFlags FILE_INFO_FLAGS = FileQueryInfoFlags.NOFOLLOW_SYMLINKS; + public const FileQueryInfoFlags FILE_INFO_FLAGS = FileQueryInfoFlags.NONE; // when using UNKNOWN_FILE_FLAGS, check if the resulting FileInfo's symlink status matches // symlink support for files and directories by calling is_file_symlink_supported(). @@ -290,7 +290,7 @@ public class DirectoryMonitor : Object { // get all the interesting matchable items from the supplied FileInfo int64 match_size = match.get_size(); - TimeVal match_time = match.get_modification_time(); + var match_time = match.get_modification_date_time(); foreach (File file in map.keys) { FileInfo info = map.get(file); @@ -303,9 +303,9 @@ public class DirectoryMonitor : Object { if (match_size != info.get_size()) continue; - TimeVal time = info.get_modification_time(); + var time = info.get_modification_date_time(); - if (time.tv_sec != match_time.tv_sec) + if (!time.equal(match_time)) continue; return file; |