scality / Droplet-sh

Shell to access cloud storage via command line
http://scop.scality.com
BSD 4-Clause "Original" or "Old" License
11 stars 2 forks source link

Difference with ls -lA and ls -la #2

Open Joacchim opened 13 years ago

Joacchim commented 13 years ago

Hello, while trying out somme app I'm working on, I came across a strange thing : The file sizes and times did not match between the option -lA and -la :

lessons:/> ls -al 2819274 2011-03-21 15:40 lesson69.mp3 0 1970-01-01 01:00 first_tenth/ 0 1970-01-01 01:00 nineth_tenth/ Total 2.82MB Price $0.000 lessons:/> ls -Al 3170762 2011-03-21 15:40 first_tenth/ 2819274 2011-03-21 15:40 lesson69.mp3 2976714 2011-03-21 15:44 nineth_tenth/ Total 8.97MB Price $0.001

In the first case, you can see that the two directories' timestamps are at epoch (or about it) while in the second listing the times are correct.

The issue is easily reproductible, it is enough to create a directory and list it.