summaryrefslogtreecommitdiff
path: root/src/DirectoryMonitor.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-06-28 21:35:52 +0200
committerJörg Frings-Fürst <debian@jff.email>2023-06-28 21:35:52 +0200
commitb86540b743f1a87a163ffb811c8fe22a01fefa38 (patch)
treeb47cb3bb83c2377234226fb3987ab3320a987dd9 /src/DirectoryMonitor.vala
parentac6e0b731b9f0b2efd392e3309a5c07e2a66adad (diff)
parente905d8e16eec152d19797937f13ba3cf4b8f8aca (diff)
Merge branch 'release/debian/0.32.1-1'debian/0.32.1-1
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;