Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dir_info in Linux not working properly #477

Open
filipemsc opened this issue Nov 4, 2024 · 3 comments
Open

dir_info in Linux not working properly #477

filipemsc opened this issue Nov 4, 2024 · 3 comments

Comments

@filipemsc
Copy link

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 filipemsc changed the title dir_info in Linux not working dir_info in Linux not working properly Nov 5, 2024
@gaborcsardi
Copy link
Member

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.)

@filipemsc
Copy link
Author

file.info():
image

system(stat ...):
image

@gaborcsardi
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants