Uses 911K of libraries. Click here for Pure Java version (8657L/44K).
!7 cmodule CreateDirectory > DynForm { S name, parentDir; L formParams() { ret ll( "Directory name", dm_textField('name), "Create in", dm_textField('parentDir), "", jbutton("Create directory", rThread createIt)); } void createIt enter { File f = newFile(newFile(parentDir), name); if (f.isDirectory()) ret with infoBox("Directory exists: " + f2s(f)); if (f.isFile()) ret with infoBox("It's a file: " + f2s(f)); mkdirs(f); if (f.isDirectory()) ret with infoBox("Directory created! " + f2s(f)); infoBox("Couldn't create directory: " + f2s(f)); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021293 |
Snippet name: | Create a directory |
Eternal ID of this version: | #1021293/2 |
Text MD5: | 1118a9d169ed727ad054a6933bddac66 |
Transpilation MD5: | 41c75a99b97557ec4fd9dc1dd61b158f |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-07 13:43:56 |
Source code size: | 649 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 338 / 414 |
Version history: | 1 change(s) |
Referenced in: | [show references] |