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

11
LINES

< > BotCompany Repo | #1000783 - List current directory, sorted by date (newest last)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (143L/2K/5K).

!752

p {
  String dirToList = ".";
  File d = new File(dirToList);
  if (d.isDirectory()) {
    File[] files = d.listFiles();
    sortFilesByDate(files);
    print(listSomeFiles(files));
  }
}

Author comment

Began life as a copy of #1000739

download  show line numbers  debug dex   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1000783
Snippet name: List current directory, sorted by date (newest last)
Eternal ID of this version: #1000783/1
Text MD5: 77837fa85144c09c633ad16ea2286a97
Transpilation MD5: d3ea9b1bc75d35582ed141791d64a60c
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-05-25 16:36:19
Source code size: 205 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 551 / 416
Referenced in: [show references]

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