changeset 69405 | 22428643351f |
parent 69402 | 61f4c406d727 |
child 69427 | ff2f39a221d4 |
--- a/src/Pure/General/file.scala Wed Dec 05 21:36:18 2018 +0100 +++ b/src/Pure/General/file.scala Wed Dec 05 22:46:44 2018 +0100 @@ -331,4 +331,13 @@ Cygwin.link(standard_path(src), target) } } + + + /* permissions */ + + def executable(path: Path) + { + if (Platform.is_windows) Isabelle_System.bash("chmod a+x " + bash_path(path)).check + else path.file.setExecutable(true, false) + } }