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

Unable to report file creation time #70

Closed
msevcenko opened this issue Nov 23, 2018 · 7 comments
Closed

Unable to report file creation time #70

msevcenko opened this issue Nov 23, 2018 · 7 comments

Comments

@msevcenko
Copy link

On Windows, when I set the FileStat.st_ctim value in the getattr method, it has no effect. File manager still reports uninitialized creation time, i.e. ‎January 1st, 1970, ‏‎0:00:00 GMT. The FileStat.st_mtim value is correctly reported as modification time. Only for files, Windows do not display modification for directories, as they have no content so that they cannot be modified.

Is this jnr-fuse issue, or is it caused by something else?

It would be also nice to implement these attributes in the MemoryFS example so that it's proven that it works.

@msevcenko
Copy link
Author

Looks like I should be using stat.st_birthtime instead of FileStat.st_ctim, on Windows, is that right? The javadoc says st_birthtime is Mac OS specific.

Or is it safe to set both fields, to be platform independent?

@msevcenko
Copy link
Author

Ok, looks like a duplicate of #51.

The st_ctim is actually a "last status change", not a creation time.

I also have the last release 0.5.1, which is quite old (Oct 2017), which does not have the mentioned pull request yet.

@msevcenko
Copy link
Author

Ok, there is 0.5.2.1 on jcenter, 0.5.1 is the latest release on maven central.

@SerCeMan
Copy link
Owner

Hey, @msevcenko!

Can you please link the ref to jnr-fuse on maven central? jnr-fuse has never been published to maven central, only to jcenter.

@msevcenko
Copy link
Author

@SerCeMan
Copy link
Owner

Hm, it seems to be referencing another repository called Spring Plugins. I've never heard about this repository before, but I assume that jnr-fuse might be included as one of the transitive dependencies.

@msevcenko
Copy link
Author

Ok, forget it :) I just use mvnrepository.com to search for plugins and it indexes several repositories, and I just mistaken Spring Plugins for mavenCentral. So now I know where to look for latest releases, thanks.

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