Archive.addDirectory

Adds a directory to the archive. If the path to the directory contains directories that are not in the archive, they are added. If the directory already exists it is not replaced with an empty directory.

class Archive(T, Filter = NullArchiveFilter)
addDirectory
(
string path
)

Return Value

Type: Directory

the final Directory in the path. (e.g. "dlang" for "languages/dlang/")

Throws

IllegalPathException when an element in the given path is already used for a file or the path is otherwise invalid.

Examples

// inserts animals/birds/ into the archive.
archive.addDirectory("animals/"); 

// inserts directory languages (if not exists) and dlang into the archive.
archive.addDirectory("languages/dlang/");

Meta