Main Content

matlab.automation.diagnostics.FileArtifact Class

Namespace: matlab.automation.diagnostics

Artifact associated with file on disk

Renamed from matlab.unittest.diagnostics.FileArtifact in R2023a

Description

Use the matlab.automation.diagnostics.FileArtifact class to refer to files on disk and to copy the files to a new location.

The automation framework instantiates this class. You cannot create an object of the matlab.automation.diagnostics.FileArtifact class directly.

The matlab.automation.diagnostics.FileArtifact class is a handle class.

Properties

expand all

Artifact name, represented as a string scalar.

Example: If the full path to the artifact is "C:\work\myfile.txt", then the value of Name is "myfile.txt".

Attributes:

GetAccess
public
SetAccess
immutable

Parent folder where the artifact is located, represented as a string scalar.

Example: If the full path to the artifact is "C:\work\myfile.txt", then the value of Location is "C:\work".

Attributes:

GetAccess
public
SetAccess
private

Full path to the artifact, represented as a string scalar.

Example: "C:\work\myfile.txt"

Attributes:

GetAccess
public
SetAccess
immutable

Methods

expand all

Version History

Introduced in R2017a

expand all