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

5
LINES

< > BotCompany Repo | #1007495 // incrementFileName

JavaX fragment (include)

static File incrementFileName(File f) {
  while (f.exists())
    f = new File(f2s(f) + "x"); // TODO
  ret f;
}

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: #1007495
Snippet name: incrementFileName
Eternal ID of this version: #1007495/2
Text MD5: 34fd18127a6192295c5bc4fa1102eec6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-25 15:29:54
Source code size: 115 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 598 / 617
Version history: 1 change(s)
Referenced in: [show references]