fs icon indicating copy to clipboard operation
fs copied to clipboard

`dir_info` in Linux not working properly

Open filipemsc opened this issue 1 year ago • 3 comments
trafficstars

I am using dir_info in Linux (Ubuntu), but it is giving me different values when compared to Windows.

Unfortunately, I don't know how to make a reprex example, but the problem is with the column birth_time:

In Linux: image

In Windows: image

For reference, I am using a WSL with these configurations: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04.1 LTS Release: 24.04 Codename: noble

Shoud I install any Linux package?

filipemsc avatar Nov 04 '24 23:11 filipemsc

What's the output of file.info() for one of these files, from Linux?

What's the output of calling stat for one of these files from the shell? (Or call system("stat <filename>") from R.)

gaborcsardi avatar Nov 05 '24 13:11 gaborcsardi

file.info(): image

system(stat ...): image

filipemsc avatar Nov 05 '24 18:11 filipemsc

So it seems like the birth time is not available in Linux, and fs fills in the zero epoch. It should probably be NA instead.

gaborcsardi avatar Nov 05 '24 18:11 gaborcsardi