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

7
LINES

< > BotCompany Repo | #1018668 // renameFileIfExists

JavaX fragment (include)

static bool renameFileIfExists(File a, File b) {
  ret fileExists(a) && renameFile(a, b);
}

static bool renameFileIfExists(File a, S newName) {
  ret fileExists(a) && renameFile(a, newName);
}

Author comment

Began life as a copy of #1002706

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018668
Snippet name: renameFileIfExists
Eternal ID of this version: #1018668/1
Text MD5: dfa2915ef30aacfb52860bf47303d130
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-08 12:46:17
Source code size: 199 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 244 / 286
Referenced in: [show references]