The enum option should not explode, but should fail gracefully when the target upload directory does not exist. There is no indication that the directory should exist or will be created. My initial assumption was that the directory would be created, but it appears the expectation is the directory will exist.
Ideally, before the block in run_script that uploads the file is executed, a check will be performed to validate as much of the r_filepath as possible and make a decision if something needs to be created. As implemented, a "No such file or directory." error is thrown and the script explodes with an unhandled SCPException.
The enum option should not explode, but should fail gracefully when the target upload directory does not exist. There is no indication that the directory should exist or will be created. My initial assumption was that the directory would be created, but it appears the expectation is the directory will exist.
Ideally, before the block in
run_scriptthat uploads the file is executed, a check will be performed to validate as much of ther_filepathas possible and make a decision if something needs to be created. As implemented, a "No such file or directory." error is thrown and the script explodes with an unhandled SCPException.