Skip to content

enum Option Should Fail Gracefully #2

@EnsonoStevenPerva

Description

@EnsonoStevenPerva

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions