1 | static void deleteDirectory(File dir) { |
2 | deleteDirectory(dir, false, false); |
3 | } |
4 | |
5 | static void deleteDirectory(File dir, boolean verbose, boolean testRun) { |
6 | deleteAllFilesInDirectory(dir, verbose, testRun); |
7 | if (verbose) print((testRun ? "Would delete " : "Deleting ") + dir.getAbsolutePath()); |
8 | if (!testRun) |
9 | dir.delete(); |
10 | } |
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: | 678 / 917 |
Version history: | 8 change(s) |
Referenced in: | [show references] |