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

7
LINES

< > BotCompany Repo | #1021033 // deleteLocalMechListCopiesOtherThan

JavaX fragment (include)

1  
svoid deleteLocalMechListCopiesOtherThan(Set<S> names) {
2  
  for (File f : listFilesWithExtension(remoteMechListMirrorsDir(), ".name")) {
3  
    S name = loadTextFile(f);
4  
    if (!names.contains(name))
5  
      deleteFiles(f, remoteMechListMirrorFile(name), remoteMechListMirrorMetaFile(name));
6  
  }
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021033
Snippet name: deleteLocalMechListCopiesOtherThan
Eternal ID of this version: #1021033/2
Text MD5: 6b8677d11a23b7c19107dab6d573e777
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-19 16:00:23
Source code size: 298 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 327 / 355
Version history: 1 change(s)
Referenced in: [show references]