Main Content

padv.util.makeSureArtifactsWriteable

Make sure that artifacts in specific directories are writeable

    Description

    padv.util.makeSureArtifactsWriteable(artifactDirectories) make sure the files in the specified directories are writeable. The function iterates over the files in artifactDirectories and makes sure those files are writeable. When you specify the runprocess argument MakeSureOutputArtifactsWriteable as true, the build system uses padv.util.makeSureArtifactsWriteable on task output directories.

    example

    Examples

    collapse all

    If you need to make sure that artifacts in a directory are writeable, you can use the utility function padv.util.makeSureArtifactsWriteable on the path to the artifact directory.

    padv.util.makeSureArtifactsWriteable(fullfile(currentProject().RootFolder,"04_Results"))

    Input Arguments

    collapse all

    Paths for artifact directories, specified as a string or string array. Note that the paths must be absolute or relative to the current working directory.

    Example: fullfile(currentProject().RootFolder, "results")

    Example: [fullfile(currentProject().RootFolder, "results"), fullfile(currentProject().RootFolder, "code")]

    Data Types: string