static void deleteDirectory(File dir) { deleteDirectory(dir, false, false); } static void deleteDirectory(File dir, boolean verbose, boolean testRun) { deleteAllFilesInDirectory(dir, verbose, testRun); if (verbose) print((testRun ? "Would delete " : "Deleting ") + dir.getAbsolutePath()); if (!testRun) dir.delete(); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1001058 |
| Snippet name: | deleteDirectory (dangerous :), but doesn't follow symlinks anymore) |
| Eternal ID of this version: | #1001058/9 |
| Text MD5: | 6f48ceac8f89a043741f54d15b7fd41b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-13 15:31:38 |
| Source code size: | 342 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 952 / 1182 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |