Class XarDirectoryEntry

Class XarDirectoryEntry

Namespace: Aspose.Zip.Xar
Assembly: Aspose.Zip.dll (25.1.0)

xar 아카이브 내의 디렉토리 항목을 나타냅니다.

public sealed class XarDirectoryEntry : XarEntry

상속

objectXarEntryXarDirectoryEntry

상속된 멤버

XarEntry.ToString(), XarEntry.Name, XarEntry.FullPath, XarEntry.IsDirectory, XarEntry.Parent, XarEntry.CreationTime, XarEntry.LastAccessTime, XarEntry.LastWriteTime, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

속성

AllEntries

디렉토리를 재귀적으로 구성하는 Aspose.Zip.Xar.XarEntry 유형의 모든 항목을 가져옵니다.

public IEnumerable<xarentry> AllEntries { get; }

속성 값

IEnumerable<XarEntry&gt;

Directories

디렉토리를 구성하는 Aspose.Zip.Xar.XarDirectoryEntry 유형의 항목을 가져옵니다.

public IEnumerable<xardirectoryentry> Directories { get; }

속성 값

IEnumerable<XarDirectoryEntry&gt;

Files

디렉토리를 구성하는 Aspose.Zip.Xar.XarFileEntry 유형의 항목을 가져옵니다.

public IEnumerable<xarfileentry> Files { get; }

속성 값

IEnumerable<XarFileEntry&gt;

FilesAndDirectories

디렉토리를 구성하는 Aspose.Zip.Xar.XarEntry 유형의 항목을 가져옵니다.

public IEnumerable<xarentry> FilesAndDirectories { get; }

속성 값

IEnumerable<XarEntry&gt;

메서드

ExtractToDirectory(string)

현재 디렉토리의 모든 파일을 제공된 디렉토리로 추출합니다.

public void ExtractToDirectory(string destinationDirectory)

매개변수

destinationDirectory string

추출된 파일을 배치할 디렉토리의 경로입니다.

예제

using (var archive = new XarArchive("archive.xar")) 
{
   ((XarDirectoryEntry)archive.Entries[0]).ExtractToDirectory("C:\\extracted");
}

비고

디렉토리가 존재하지 않으면 생성됩니다.

예외

ArgumentNullException

경로가 null입니다.

PathTooLongException

지정된 경로, 파일 이름 또는 둘 다 시스템에서 정의된 최대 길이를 초과합니다. 예를 들어, Windows 기반 플랫폼에서는 경로가 248자 미만이어야 하고 파일 이름이 260자 미만이어야 합니다.

SecurityException

호출자가 기존 디렉토리에 접근할 수 있는 권한이 없습니다.

NotSupportedException

디렉토리가 존재하지 않거나 경로에 드라이브 레이블(“C:")의 일부가 아닌 콜론 문자(:)가 포함되어 있습니다.

ArgumentException

경로가 길이가 0인 문자열이거나 공백만 포함하거나 하나 이상의 잘못된 문자가 포함되어 있습니다. 잘못된 문자는 System.IO.Path.GetInvalidPathChars 메서드를 사용하여 조회할 수 있습니다. -또는- 경로가 콜론 문자(:)로 시작되거나 콜론 문자만 포함하고 있습니다.

IOException

경로로 지정된 디렉토리가 파일입니다. -또는- 네트워크 이름을 알 수 없습니다.

InvalidDataException

아카이브가 손상되었습니다.

 한국어