summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-vfs-file.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-28 12:07:58 +0200
committerraveit65 <[email protected]>2021-04-20 19:40:09 +0200
commit0eb7520d23cc4ca6cdd9b6c97d3f6cbafcdfc927 (patch)
treef65d5ff92cb5ca3f62f94881d64232f0c8f0efe0 /libcaja-private/caja-vfs-file.c
parenta940185ca0ee157b980250d7f2f5bef842e3625f (diff)
downloadcaja-0eb7520d23cc4ca6cdd9b6c97d3f6cbafcdfc927.tar.bz2
caja-0eb7520d23cc4ca6cdd9b6c97d3f6cbafcdfc927.tar.xz
Add creation time support
Diffstat (limited to 'libcaja-private/caja-vfs-file.c')
-rw-r--r--libcaja-private/caja-vfs-file.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libcaja-private/caja-vfs-file.c b/libcaja-private/caja-vfs-file.c
index f876a402..1f64d93d 100644
--- a/libcaja-private/caja-vfs-file.c
+++ b/libcaja-private/caja-vfs-file.c
@@ -354,6 +354,17 @@ vfs_file_get_date (CajaFile *file,
*date = file->details->mtime;
}
return TRUE;
+ case CAJA_DATE_TYPE_CREATED:
+ /* Before we have info on a file, the date is unknown. */
+ if (file->details->btime == 0)
+ {
+ return FALSE;
+ }
+ if (date != NULL)
+ {
+ *date = file->details->btime;
+ }
+ return TRUE;
case CAJA_DATE_TYPE_TRASHED:
/* Before we have info on a file, the date is unknown. */
if (file->details->trash_time == 0)