summaryrefslogtreecommitdiff
path: root/src/DirectoryMonitor.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-06-14 20:36:37 +0200
committerJörg Frings-Fürst <debian@jff.email>2023-06-14 20:36:37 +0200
commitbb80d3feebdc9acc52e3f4ad24084d8425f043a2 (patch)
tree2084a84c39f159c6aea254775dc0880d52579d45 /src/DirectoryMonitor.vala
parentb26ff0798252a1a8072dd2c7a67f6205de9fde11 (diff)
parent31804433d72460cbe0a39f9f8ea5e76058d84cda (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/DirectoryMonitor.vala')
-rw-r--r--src/DirectoryMonitor.vala8
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;