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

7
LINES

< > BotCompany Repo | #1005311 // listFilesOnly - list only the files (not directories)

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

Libraryless. Click here for Pure Java version (4685L/26K).

static L<File> listFilesOnly(S dir) {
  ret listFilesOnly(new File(dir));
}

static L<File> listFilesOnly(File... dirs) {
  ret concatMap(dir -> listFilesWithSuffix("", dir), dirs);
}

Author comment

Began life as a copy of #1002088

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1005311
Snippet name: listFilesOnly - list only the files (not directories)
Eternal ID of this version: #1005311/8
Text MD5: 9dfbb63b8ac3016a68590a5d8996a29b
Transpilation MD5: ceb35d2ed936095327555980123869a2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-11-14 23:03:54
Source code size: 189 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 504 / 632
Version history: 7 change(s)
Referenced in: [show references]