Class WimDirectoryEntry
Namespace: Aspose.Zip.Wim
Assembly: Aspose.Zip.dll (25.1.0)
wim 아카이브 내의 단일 디렉토리를 나타냅니다.
public sealed class WimDirectoryEntry : WimEntry
상속
object ← WimEntry ← WimDirectoryEntry
상속된 멤버
WimEntry.ToString(), WimEntry.Archive, WimEntry.Image, WimEntry.Parent, WimEntry.Name, WimEntry.ShortName, WimEntry.FullPath, WimEntry.ChangeTime, WimEntry.CreationTime, WimEntry.LastAccessTime, WimEntry.LastWriteTime, WimEntry.FileAttributes, WimEntry.AlternateDataStreams, WimEntry.HardLink, WimEntry.HasHardLinks, WimEntry.IsDirectory, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
속성
AllEntries
디렉토리를 구성하는 Aspose.Zip.Wim.WimEntry 유형의 모든 항목을 재귀적으로 가져옵니다.
public IEnumerable<wimentry> AllEntries { get; }
속성 값
IEnumerable<WimEntry>
Directories
디렉토리를 구성하는 Aspose.Zip.Wim.WimDirectoryEntry 유형의 항목을 가져옵니다.
public ReadOnlyCollection<wimdirectoryentry> Directories { get; }
속성 값
ReadOnlyCollection<WimDirectoryEntry>
Files
디렉토리를 구성하는 Aspose.Zip.Wim.WimFileEntry 유형의 항목을 가져옵니다.
public ReadOnlyCollection<wimfileentry> Files { get; }
속성 값
ReadOnlyCollection<WimFileEntry>
FilesAndDirectories
디렉토리를 구성하는 Aspose.Zip.Wim.WimEntry 유형의 항목을 가져옵니다.
public IEnumerable<wimentry> FilesAndDirectories { get; }
속성 값
IEnumerable<WimEntry>
메서드
ExtractToDirectory(string)
현재 디렉토리의 모든 파일을 제공된 디렉토리로 추출합니다.
public void ExtractToDirectory(string destinationDirectory)
매개변수
destinationDirectory
string
추출된 파일을 배치할 디렉토리의 경로입니다.
예제
using (var archive = new WimArchive("archive.wim"))
{
archive.Images[0].RootDirectory.ExtractToDirectory(@"C:\\extracted");
}
비고
디렉토리가 존재하지 않으면 생성됩니다.
예외
경로가 null입니다.
지정된 경로, 파일 이름 또는 둘 다 시스템 정의 최대 길이를 초과합니다. 예를 들어, Windows 기반 플랫폼에서는 경로는 248자 미만이어야 하고 파일 이름은 260자 미만이어야 합니다.
호출자가 기존 디렉토리에 접근할 수 있는 권한이 없습니다.
디렉토리가 존재하지 않거나 경로가 드라이브 레이블(“C:")의 일부가 아닌 콜론 문자(:)를 포함합니다.
경로가 길이 0의 문자열이거나, 공백만 포함하거나, 하나 이상의 잘못된 문자를 포함합니다. 잘못된 문자를 쿼리하려면 System.IO.Path.GetInvalidPathChars 메서드를 사용할 수 있습니다. -또는- 경로가 콜론 문자(:)로 시작되거나, 콜론 문자만 포함합니다.
지정된 경로의 디렉토리가 파일입니다. -또는- 네트워크 이름을 알 수 없습니다.
아카이브가 손상되었습니다.