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

touch doesn't set the provided time if it created the file #101

Open
jeaye opened this issue Feb 1, 2016 · 0 comments
Open

touch doesn't set the provided time if it created the file #101

jeaye opened this issue Feb 1, 2016 · 0 comments

Comments

@jeaye
Copy link

jeaye commented Feb 1, 2016

(fs/touch "meow" (+ (System/currentTimeMillis) 3600000))

Should create a file named meow and set its modification time one hour in the future. If the file is being created, the modification time is just set to the creation time. If we run the same function again, this time not creating the file, the modification time is set properly. Is this intended behavior? It seems like a bug to me.

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

1 participant