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

20
LINES

< > BotCompany Repo | #1001050 - Show data directory for a program

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

Libraryless. Click here for Pure Java version (105L/1K/4K).

!747

m {
  static S snippetID = "#1001048"; // just a test program
 
  p {
    if (args.length != 0) snippetID = args[0];
    
    print("Listing: " + programDir(snippetID));
    print();
    
    int count = 0;
    for (File f : listProgramDir(snippetID)) {
      print(f.getName());
      ++count;
    }
    print();
    print(count + " files/dirs found for program " + formatSnippetID(snippetID) + ".");
  }
}

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: #1001050
Snippet name: Show data directory for a program
Eternal ID of this version: #1001050/1
Text MD5: f20ddcd59ad99b3588b69a446ee43bb1
Transpilation MD5: 87c331c4899b5f345ebd919bb3350bd0
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-09-18 19:43:18
Source code size: 432 bytes / 20 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 486 / 454
Referenced in: [show references]

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