Libraryless. Click here for Pure Java version (2506L/16K).
svoid touchExistingFile(File file) ctex { if (file == null) ret; java.nio.file.Files.setLastModifiedTime(toPath(file), java.nio.file.attribute.FileTime.from(java.time.Instant.now())); }
Began life as a copy of #1002244
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029790 |
Snippet name: | touchExistingFile - alternative method using setLastModifiedTime |
Eternal ID of this version: | #1029790/3 |
Text MD5: | a51519eb81ff4eeed9ae44b8b64fddc5 |
Transpilation MD5: | 10a3f82e04f9acc0fe3eec864ee8c2c6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-16 14:20:17 |
Source code size: | 197 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 202 / 299 |
Version history: | 2 change(s) |
Referenced in: | [show references] |