Libraryless. Click here for Pure Java version (2506L/16K).
1 | svoid touchExistingFile(File file) ctex {
|
2 | if (file == null) ret; |
3 | java.nio.file.Files.setLastModifiedTime(toPath(file), |
4 | java.nio.file.attribute.FileTime.from(java.time.Instant.now())); |
5 | } |
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: | 426 / 561 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |