sbool deleteLocalSnippet(S snippetID) {
File f = localSnippetFile(snippetID);
if (!fileExists(f)) false;
File backupDir = localSnippetsDir("Deleted");
moveFileVerbose(f, makeFileNameUnique(newFile(backupDir, f.getName())));
moveFileVerboseIfExists(fileInfoFile(f), makeFileNameUnique(newFile(backupDir, fileInfoFile(f).getName())));
true;
}download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020388 |
| Snippet name: | deleteLocalSnippet |
| Eternal ID of this version: | #1020388/6 |
| Text MD5: | fa4fc5e9a13807545fe0fc6413954cb5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-18 16:44:36 |
| Source code size: | 359 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 823 / 828 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |