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

10
LINES

< > BotCompany Repo | #1024948 // renameFileVerbose

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5073L/28K).

1  
sbool renameFileVerbose(File a, File b) {
2  
  if (a == null || b == null) false;
3  
  bool result = renameFile(a, b);
4  
  print("Renaming " + f2s(a) + " to " + f2s(b) + "? " + yesNo2(result));
5  
  ret result;
6  
}
7  
8  
static bool renameFileVerbose(File a, S newName) {
9  
  ret renameFileVerbose(a, fileInSameDir(a, newName));
10  
}

Author comment

Began life as a copy of #1002706

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024948
Snippet name: renameFileVerbose
Eternal ID of this version: #1024948/4
Text MD5: 1a0895ee25e2f3519fdb6e4318723c65
Transpilation MD5: 5b0e2566f3d11b3e81ec58ee5dd9e4fe
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-06 01:11:24
Source code size: 319 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 159 / 245
Version history: 3 change(s)
Referenced in: [show references]