Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1001504 // makeExecutable

JavaX fragment (include)

static void makeExecutable(File file) ctex {
  if (!isWindows())
    try {
      makeExecutable_java7(file);
    } catch {
      warn("Java 6 fallback for makeExecutable");
      backtick("chmod a+rx " + bashQuote(file));
    }
}

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: #1001504
Snippet name: makeExecutable
Eternal ID of this version: #1001504/5
Text MD5: 446ed2e281cc9c7188829757bcdd44a9
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-30 23:09:14
Source code size: 237 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 598 / 895
Version history: 4 change(s)
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1006751 - makeExecutable_java7
#1009054 - chmod_aPlusRX - make directory readable for everyone
#1031212 - makeWriteableForAll [dev.]
#3000382 - Answer for ferdie (>> t = 1, f = 0)