changeset 72377 | c7741f767e3e |
parent 72376 | 04bce3478688 |
child 72414 | af24c0dd6975 |
--- a/src/Pure/System/isabelle_system.scala Mon Oct 05 22:07:25 2020 +0200 +++ b/src/Pure/System/isabelle_system.scala Mon Oct 05 22:23:17 2020 +0200 @@ -198,6 +198,10 @@ path } + def new_directory(path: Path): Path = + if (path.is_dir) error("Directory already exists: " + path) + else make_directory(path) + def copy_dir(dir1: Path, dir2: Path): Unit = bash("cp -a " + File.bash_path(dir1) + " " + File.bash_path(dir2)).check