Raynes / fs

File system utilities for Clojure.
453 stars 119 forks source link

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

Open jeaye opened 8 years ago

jeaye commented 8 years ago
(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.