Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Get-Asset Operation does not ensure WorkingDirectory exists



  • The Get-Asset operation does not ensure the $WorkingDirectory exists. This leads to an exception if the directory has not been created by a previous operation.

    The Ensure-Directory operation will create the $WorkingDirectory, but it then becomes a configuration item that is reported on the Server's configuration page.

    I cannot locate a function that simply creates a directory if it does not exist. The Get-Asset operation should ensure that the working directory exists when copying the asset, similar to some other operations.

    Is there a workaround other than Ensure-Directory?

    Product: Otter
    Version: 2.0.12



  • The Create-File operation will create the directory. Using $WorkingDirectory as the location of the file ensures that that path is created and will be removed after execution completes.

    Still, Get-Asset should ensure the destination directory exists.


  • inedo-engineer

    I totally agree! Thanks for pointing this out.

    I've filed this is a bug report (OT-254), so it will get fixed in a future maintenance release


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation