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

7
LINES

< > BotCompany Repo | #1019377 // findProbableLogFiles

JavaX fragment (include)

1  
static L<File> findProbableLogFiles() {
2  
  ret [File f : findAllFiles_noDirs(javaxDataDir())
3  
    | containsWord_regexp(fileName(f), "log")
4  
    //|| hasExtension(f, "txt")
5  
    || eqOneOf(fileName(f), "recognized.txt", "expressions.txt", "bad-login-attemps.txt", "with-results.txt") // TODO: rename these in the corresponding program to something with "log"
6  
    ];
7  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019377
Snippet name: findProbableLogFiles
Eternal ID of this version: #1019377/4
Text MD5: f2ed11c92dae08b5521b782dcd637530
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-12 16:16:36
Source code size: 369 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 300 / 340
Version history: 3 change(s)
Referenced in: [show references]