equal
deleted
inserted
replaced
376 |
376 |
377 def is_link(path: Path): Boolean = |
377 def is_link(path: Path): Boolean = |
378 try { sftp.lstat(remote_path(path)).isLink } |
378 try { sftp.lstat(remote_path(path)).isLink } |
379 catch { case _: SftpException => false } |
379 catch { case _: SftpException => false } |
380 |
380 |
381 override def mkdirs(path: Path): Unit = |
381 override def make_directory(path: Path): Unit = |
382 if (!is_dir(path)) { |
382 if (!is_dir(path)) { |
383 execute( |
383 execute( |
384 "perl -e \"use File::Path make_path; make_path('" + remote_path(path) + "');\"") |
384 "perl -e \"use File::Path make_path; make_path('" + remote_path(path) + "');\"") |
385 if (!is_dir(path)) error("Failed to create directory: " + quote(remote_path(path))) |
385 if (!is_dir(path)) error("Failed to create directory: " + quote(remote_path(path))) |
386 } |
386 } |
492 |
492 |
493 def expand_path(path: Path): Path = path.expand |
493 def expand_path(path: Path): Path = path.expand |
494 def bash_path(path: Path): String = File.bash_path(path) |
494 def bash_path(path: Path): String = File.bash_path(path) |
495 def is_dir(path: Path): Boolean = path.is_dir |
495 def is_dir(path: Path): Boolean = path.is_dir |
496 def is_file(path: Path): Boolean = path.is_file |
496 def is_file(path: Path): Boolean = path.is_file |
497 def mkdirs(path: Path): Unit = Isabelle_System.mkdirs(path) |
497 def make_directory(path: Path): Unit = Isabelle_System.make_directory(path) |
498 |
498 |
499 def execute(command: String, |
499 def execute(command: String, |
500 progress_stdout: String => Unit = (_: String) => (), |
500 progress_stdout: String => Unit = (_: String) => (), |
501 progress_stderr: String => Unit = (_: String) => (), |
501 progress_stderr: String => Unit = (_: String) => (), |
502 strict: Boolean = true): Process_Result = |
502 strict: Boolean = true): Process_Result = |