[GH-ISSUE #771] Create time of files in bucket reported as zero #441

Closed
opened 2026-03-04 01:45:35 +03:00 by kerem · 1 comment
Owner

Originally created by @quaxquax on GitHub (May 28, 2018).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/771

Just noticed that the create time of all files in a bucket are set to zero:

ubuntu@ip-172-31-12-14:/tmp$ ls -lc /bayesforgeS3models/csv/
total 36761
-rw-r--r-- 1 1001 root 1281706 Jan 1 1970 asia.csv
-rw-rw-r-- 1 1001 root 200046 Jan 1 1970 burglary20000.csv
-rw-rw-r-- 1 1001 root 36000089 Jan 1 1970 credit2000000.csv
-rw-r--r-- 1 1001 root 160043 Jan 1 1970 potato.csv
-rw-rw-r-- 1 1001 root 0 Jan 1 1970 rain1000.csv

According to this stackoverflow track getting the create time from the AWS metadata is tricky but not impossible:

Originally created by @quaxquax on GitHub (May 28, 2018). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/771 Just noticed that the create time of all files in a bucket are set to zero: `ubuntu@ip-172-31-12-14:/tmp$ ls -lc /bayesforgeS3models/csv/` `total 36761` `-rw-r--r-- 1 1001 root 1281706 Jan 1 1970 asia.csv` `-rw-rw-r-- 1 1001 root 200046 Jan 1 1970 burglary20000.csv` `-rw-rw-r-- 1 1001 root 36000089 Jan 1 1970 credit2000000.csv` `-rw-r--r-- 1 1001 root 160043 Jan 1 1970 potato.csv` `-rw-rw-r-- 1 1001 root 0 Jan 1 1970 rain1000.csv` According to [this stackoverflow ](https://stackoverflow.com/questions/27746760/how-do-i-get-the-s3-keys-created-date-with-boto)track getting the create time from the AWS metadata is tricky but not impossible:
kerem closed this issue 2026-03-04 01:45:36 +03:00
Author
Owner

@gaul commented on GitHub (Jan 11, 2019):

Note that ctime is actually change time; file birth time is something else and not well-supported in Linux.

<!-- gh-comment-id:453674408 --> @gaul commented on GitHub (Jan 11, 2019): Note that ctime is actually _change_ time; file birth time is something else and not well-supported in Linux.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#441
No description provided.