Class XarDirectoryEntry

Class XarDirectoryEntry

이름 공간 : Aspose.Zip.Xar 모임: Aspose.Zip.dll (25.5.0)

디렉토리 입력은 xar 아카이브 내에서 나타납니다.

public sealed class XarDirectoryEntry : XarEntry

Inheritance

object XarEntry XarDirectoryEntry

상속 회원들

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

Properties

AllEntries

Aspose.Zip.Xar.XarEntry 형식의 모든 입력이 리커스를 반복적으로 형성합니다.

public IEnumerable<xarentry> AllEntries { get; }

부동산 가치

IEnumerable &lt에 대한 정보 XarEntry >

Directories

디렉토리를 구성하는 Aspose.Zip.Xar.XarDirectoryEntry 형식의 입력을 얻습니다.

public IEnumerable<xardirectoryentry> Directories { get; }

부동산 가치

IEnumerable &lt에 대한 정보 XarDirectoryEntry >

Files

디렉토리를 구성하는 Aspose.Zip.Xar.XarFileEntry 형식의 입력을 얻습니다.

public IEnumerable<xarfileentry> Files { get; }

부동산 가치

IEnumerable &lt에 대한 정보 XarFileEntry >

FilesAndDirectories

디렉토리를 구성하는 Aspose.Zip.Xar.XarEntry 형식의 입력을 얻습니다.

public IEnumerable<xarentry> FilesAndDirectories { get; }

부동산 가치

IEnumerable &lt에 대한 정보 XarEntry >

Methods

ExtractToDirectory(스트리트)

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

public void ExtractToDirectory(string destinationDirectory)

Parameters

destinationDirectory string

디렉토리로 이동하여 추출된 파일을 입력합니다.

Examples

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

Remarks

디렉토리가 존재하지 않는다면, 그것은 만들어집니다.

Exceptions

ArgumentNullException

길은 0

PathTooLongException

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

SecurityException

호출자는 기존 디렉토리에 액세스 할 수있는 필요한 허가를 가지고 있지 않습니다.

NotSupportedException

디렉토리가 존재하지 않는 경우, 경로는 드라이브 라벨의 일부가 아닌 척추 캐릭터 (:)를 포함합니다 (“C:”).

ArgumentException

경로는 0 길이의 스트립, 단지 흰 공간을 포함, 또는 하나 이상의 무효 캐릭터를 포함합니다. 당신은 System.IO.Path.GetInvalidPathChars 방법을 사용하여 무효 캐릭터를 요청할 수 있습니다. -or- 경로는, 또는 포함, 단지 척추 캐릭터 (:).

IOException

경로에 의해 지정된 디렉토리는 파일입니다. -or- 네트워크 이름은 알려지지 않습니다.

InvalidDataException

아카이브가 부패했다.

 한국어