Libraryless. Click here for Pure Java version (11117L/62K).
svoid thinAProgramsBackups_v2(S progID, bool doIt) { File dir = programDir(progID); thinAProgramsBackups_v2(dir, doIt); } svoid thinAProgramsBackups_v2(File dir, bool doIt) { print("Processing backups in " + dir); var backupDir = newFile(dir, "backups"); new BackupThinner bt; bt.setDir(backupDir); bt.scan(); int numDeleted = 0; for (File f : bt.deletableFiles) { if (doIt) { print("Deleting: " + f); f.delete(); } else print("Would delete: " + f); } }
Began life as a copy of #1011269
download show line numbers debug dex old transpilations
Travelled to 1 computer(s): mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1038778 |
Snippet name: | thinAProgramsBackups_v2 |
Eternal ID of this version: | #1038778/3 |
Text MD5: | 555b8cae23b63be8e6ce1bcdc58e5234 |
Transpilation MD5: | 3b75e4e547f9becff885f95281beaf31 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2025-04-20 19:38:04 |
Source code size: | 531 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 20 / 43 |
Version history: | 2 change(s) |
Referenced in: | [show references] |