aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@gmail.com>2016-04-29 14:01:27 +0200
committerDmitrij D. Czarkoff <czarkoff@gmail.com>2016-04-29 16:31:40 +0200
commitff5029b867ebf550126ba63aa5872b906c2e6441 (patch)
tree4f20d396ea024c71f73c7eea9328079180571b17
parent70a5b9aa6f8a3d48afb2a5f59563119aef3768d9 (diff)
downloadimv-ff5029b867ebf550126ba63aa5872b906c2e6441.tar.gz
Remember files' modification times, not their directories'
-rw-r--r--src/navigator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/navigator.c b/src/navigator.c
index 2756134..40a315b 100644
--- a/src/navigator.c
+++ b/src/navigator.c
@@ -109,6 +109,7 @@ void imv_navigator_add(struct imv_navigator *nav, const char *path,
if(recursive) {
imv_navigator_add(nav, path_buf, recursive);
} else {
+ stat(path_buf, &path_info);
add_item(nav, path_buf, path_info.st_mtim.tv_sec);
}
}