// will create the file or update its last modified timestamp static File touchFile(File file) ctex { closeRandomAccessFile(newRandomAccessFile(mkdirsForFile(file), "rw")); ret file; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002244 |
Snippet name: | touchFile |
Eternal ID of this version: | #1002244/2 |
Text MD5: | be67fd82be5cbbe53b32e868e9ba8ea8 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-14 04:12:19 |
Source code size: | 192 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 714 / 1116 |
Version history: | 1 change(s) |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029790 - touchExistingFile - alternative method using setLastModifiedTime #3000382 - Answer for ferdie (>> t = 1, f = 0) |