1 | static void nativeFileSystemBrowser(File dir) {
|
2 | if (isLinux()) |
3 | backtick("xdg-open " + bashQuote(dir));
|
4 | else if (isWindows()) |
5 | backtick(print("start \"\" " + winQuote(dir)));
|
6 | else if (isMac()) |
7 | nohup("open " + bashQuote(dir));
|
8 | else fail("File system browser implemented for your OS");
|
9 | } |
Began life as a copy of #1009695
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1011160 |
| Snippet name: | nativeFileSystemBrowser |
| Eternal ID of this version: | #1011160/1 |
| Text MD5: | cd582de067c08d94676d79e916afece3 |
| Author: | stefan |
| Category: | javax / io |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-16 17:46:40 |
| Source code size: | 311 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 673 / 680 |
| Referenced in: | [show references] |