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).

1  
!752
2  
3  
p {
4  
  String dirToList = ".";
5  
  File d = new File(dirToList);
6  
  if (d.isDirectory()) {
7  
    File[] files = d.listFiles();
8  
    sortFilesByDate(files);
9  
    print(listSomeFiles(files));
10  
  }
11  
}

Author comment

Began life as a copy of #1000739

download  show line numbers  debug dex  old transpilations   

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

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: 780 / 715
Referenced in: [show references]