caddy-fs-s3 icon indicating copy to clipboard operation
caddy-fs-s3 copied to clipboard

Strange date for directories

Open jpds opened this issue 1 year ago • 3 comments

I noticed that a strange last-modified date is displayed for directories when this module is used with a Garage cluster (files are fine):

Screenshot from 2024-02-26 23-39-38

Perhaps instead a - could be displayed for this case?

jpds avatar Feb 26 '24 23:02 jpds

Hmm, having taken a look at the codebases - this needs to be fixed here: https://github.com/caddyserver/caddy/blob/03f703a00e006a1e53a2eaf5f4e33a1b3a5e4237/modules/caddyhttp/fileserver/browse.html#L976-L991

I do not however have an alternative S3 implementation to double check if a modified date is returned on AWS for directories before submitting a PR to fix this.

jpds avatar Feb 27 '24 00:02 jpds

@jpds cloud you share part of s3 fs config in caddyfile ?

Thanks

ta2013 avatar Jul 06 '24 12:07 ta2013