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

5
LINES

< > BotCompany Repo | #1015356 - renderFileInfo

JavaX fragment (include)

static S renderFileInfo(File f) {
  ret f == null ? "-" : f2s(f) + " "
    + (f.isFile() ? "(file, " + n2(fileSize(f)) + " bytes)"
      : f.isDirectory() ? "(dir)" : "(not found)");
}

Author comment

Began life as a copy of #1011916

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1015356
Snippet name: renderFileInfo
Eternal ID of this version: #1015356/2
Text MD5: 70c10f3f3e609102fa650b1f71e691aa
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-30 16:55:03
Source code size: 188 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 198
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1015356 & http://1015356.tinybrain.de