I'd like to update the modification time of some files in Nim, without actually modifying them, like Unix touch
. I see there is an os.getLastModificationTime
function, or more broadly os.getFileInfo
, but I do not see corresponding set functions.
How do you touch a file in Nim? (If platform matters, I am currently working on Windows, sadly.)