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

5
LINES

< > BotCompany Repo | #1028233 // saveBinaryFileVerbose

JavaX fragment (include)

1  
svoid saveBinaryFileVerbose(File f, byte[] data) {
2  
  bool exists = f.exists();
3  
  saveBinaryFile(f, data);
4  
  print((!exists ? "Created" : "Updated") + " file " + f2s(f) + " (" + f.length() + " bytes)");
5  
}

Author comment

Began life as a copy of #1005015

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028233
Snippet name: saveBinaryFileVerbose
Eternal ID of this version: #1028233/1
Text MD5: 850249e81a72b811f5f21261cef67dce
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-27 14:36:49
Source code size: 207 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 253 / 295
Referenced in: [show references]