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

10
LINES

< > BotCompany Repo | #1035517 // renameFileInfoBox

JavaX fragment (include)

sbool renameFileInfoBox(File a, File b) {
  if (a == null || b == null) false;
  bool result = renameFile(a, b);
  infoBox("Renaming " + f2s(a) + " to " + f2s(b) + "? " + yesNo2(result));
  ret result;
}

sbool renameFileInfoBox(File a, S newName) {
  ret renameFileInfoBox(a, fileInSameDir(a, newName));
}

Author comment

Began life as a copy of #1024948

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035517
Snippet name: renameFileInfoBox
Eternal ID of this version: #1035517/1
Text MD5: 38b46f3c2c3a691fa5eb0fc5cc6e6dff
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-02 00:48:36
Source code size: 315 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 107 / 121
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)