summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-vfs-file.c
diff options
context:
space:
mode:
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)