BrettMayson / HEMTT

Build System for Arma 3
http://hemtt.dev/
GNU General Public License v2.0
113 stars 40 forks source link

[Bug]: Rhai script cannot copy a folder #633

Closed WitchFreya closed 9 months ago

WitchFreya commented 9 months ago

Description

Copying a folder using a script fails silently.

Steps to Reproduce

  1. Create a new project.
  2. Create a folder called existing_folder.
  3. Create a script .hemtt/scripts/copy_folder.rhai with the following:
let existing_folder = HEMTT_RFS.join("existing_folder");
print(`Source folder exists? ${existing_folder.exists()}`);
let target_folder = HEMTT_RFS.join("new_folder");
print(`Target folder exists? ${target_folder.exists()}`);
let success = existing_folder.copy(target_folder);
print(`Copy success? ${success}`);
  1. Run hemtt.exe script copy_folder

Output

Failure Output

User Details

BrettMayson commented 9 months ago

The next release will throw an error with additional information

865f502