copyTo
새 위치에 아티팩트 복사
구문
newArtifacts = copyTo(artifact,destination)
설명
newArtifacts = copyTo(
은 새 위치에 아티팩트를 복사하고 업데이트된 artifact
,destination
)matlab.automation.diagnostics.Artifact
인스턴스의 배열을 반환합니다. copyTo
메서드는 각 newArtifacts
인스턴스의 Location
속성을 destination
으로 설정합니다.
입력 인수
artifact
— 새 위치로 복사할 아티팩트
matlab.automation.diagnostics.FileArtifact
인스턴스의 배열
새 위치로 복사할 아티팩트로, matlab.automation.diagnostics.FileArtifact
인스턴스의 배열로 지정됩니다.
destination
— 아티팩트의 새 위치
문자형 벡터 | string형 스칼라
아티팩트의 새 위치로, 문자형 벡터나 string형 스칼라로 지정됩니다.
예: tempdir()
예: "mySubFolder
예: 'C:\work'
예제
새 위치에 아티팩트 복사
파일 아티팩트의 배열을 만듭니다. 이 예제에서는 someFile.m
과 anotherFile.m
이라는 파일이 현재 폴더에 존재한다고 가정합니다.
import matlab.automation.diagnostics.FileArtifact fileArtifact1 = FileArtifact('someFile.m'); fileArtifact2 = FileArtifact('anotherFile.m'); artifacts = [fileArtifact1 fileArtifact2];
아티팩트를 임시 폴더에 복사합니다.
destination = tempdir(); newArtifacts = artifacts.copyTo(destination);
버전 내역
R2017a에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)