changeset 78161 | 4b1b7cbb3e9a |
parent 78158 | 8b5a2e4b16d4 |
child 78169 | 5ad1ae8626de |
--- a/src/Pure/General/file.scala Thu Jun 15 14:45:21 2023 +0200 +++ b/src/Pure/General/file.scala Thu Jun 15 15:04:23 2023 +0200 @@ -362,6 +362,8 @@ /* permissions */ + def restrict(path: Path): Unit = Isabelle_System.chmod("g-rwx,o-rwx", path) + def is_executable(path: Path): Boolean = { if (Platform.is_windows) Isabelle_System.bash("test -x " + bash_path(path)).check.ok else path.file.canExecute