src/Pure/System/components.scala
changeset 80011 b082476a8036
parent 80001 98384596b54b
child 80048 a213dd3c0b29
--- a/src/Pure/System/components.scala	Tue Mar 26 20:23:13 2024 +0100
+++ b/src/Pure/System/components.scala	Tue Mar 26 20:39:06 2024 +0100
@@ -202,9 +202,11 @@
     def README: Path = path + Path.basic("README")
     def LICENSE: Path = path + Path.basic("LICENSE")
 
-    def create(progress: Progress = new Progress): Directory = {
-      progress.echo("Creating component directory " + toString)
-      ssh.new_directory(path)
+    def create(progress: Progress = new Progress, permissive: Boolean = false): Directory = {
+      if (!permissive || !ssh.is_dir(path)) {
+        progress.echo("Creating component directory " + toString)
+        ssh.new_directory(path)
+      }
       ssh.make_directory(etc)
       this
     }