From 17377fccae786ad5b23f73de2bae0e15e9de2613 Mon Sep 17 00:00:00 2001 From: Avimitin Date: Wed, 4 Sep 2024 16:54:22 +0800 Subject: [PATCH] [script] fix file permission issue Signed-off-by: Avimitin --- script/emu/src/Main.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/emu/src/Main.scala b/script/emu/src/Main.scala index 2d696edac..3a06efbd6 100644 --- a/script/emu/src/Main.scala +++ b/script/emu/src/Main.scala @@ -250,7 +250,8 @@ object Main: .filter(path => os.isDir(path)) .filter(path => path.segments.toSeq.last.endsWith(".daidir")) .last - os.copy.into(daidirPath, outputPath, followLinks = true) + val daidirName = daidirPath.segments.toSeq.last + os.copy.into(outputPath / daidirName, daidirPath) Logger.info(s"Output saved under ${outputPath}") end run