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

8
LINES

< > BotCompany Repo | #1010528 // fileStatus

JavaX fragment (include)

static FileStatus fileStatus(S path) {
  ret fileStatus(newFile(path));
}

static FileStatus fileStatus(File f) {
  ret nu(FileStatus, path := f2s(f), time := f.lastModified(), size := fileLength(f),
    isDir := f.isDirectory());
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010528
Snippet name: fileStatus
Eternal ID of this version: #1010528/6
Text MD5: 96cd2bdfc94ef791d48d8d4205084807
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-15 17:40:34
Source code size: 239 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 336 / 398
Version history: 5 change(s)
Referenced in: [show references]