Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1002244 // touchFile

JavaX fragment (include)

1  
// will create the file or update its last modified timestamp
2  
static File touchFile(File file) ctex {
3  
  closeRandomAccessFile(newRandomAccessFile(mkdirsForFile(file), "rw"));
4  
  ret file;
5  
}

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: 715 / 1118
Version history: 1 change(s)
Referenced in: [show references]