NAnt SDK Documentation - v0.92

ExpandBaseTask.ExtractDirectory Method 

Extracts a directory entry from the specified stream.

[Visual Basic]
Protected Sub ExtractDirectory( _
   ByVal inputStream As Stream, _
   ByVal destDirectory As String, _
   ByVal entryName As String, _
   ByVal entryDate As Date _
)
[C#]
protected void ExtractDirectory(
   Stream inputStream,
   string destDirectory,
   string entryName,
   DateTime entryDate
);

Parameters

inputStream
The Stream containing the directory entry.
destDirectory
The directory where to create the subdirectory.
entryName
The name of the directory entry.
entryDate
The date of the entry.

Exceptions

Exception Type Condition
BuildException

The destination directory for the entry could not be created.

See Also

ExpandBaseTask Class | NAnt.Compression.Tasks Namespace