# class KArchiveDirectory

###

Module | kio
Namespace |
Class | KArchiveDirectory
Inherits | KArchiveEntry

Represents a directory entry in a KArchive. A directory in an archive.

See also KArchive

See also KArchiveFile

### methods

- KArchiveDirectory (archive, name, access, date, user, group, symlink)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  archive | KArchive |
  name | QString |
  access | int |
  date | int |
  user | QString |
  group | QString |
  symlink | QString |

  Creates a new directory entry.

  archive - the entries archive

  name - the name of the entry

  access - the permissions in unix format

  date - the date (in seconds since 1970)

  user - the user that owns the entry

  group - the group that owns the entry

  symlink - the symlink, or QString()

- addEntry (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | KArchiveEntry |

  Internal Adds a new entry to the directory.

- copyTo (dest, recursive)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  dest | QString |
  recursive | bool | 1

  Extracts all entries in this archive directory to the directory dest.

  dest - the directory to extract to

  recursive - if set to true, subdirectories are extracted as well

- entries ( )

  returns QStringList

  Returns a list of sub-entries. Note that the list is not sorted, it's even in random order (due to using a hashtable). Use sort() on the result to sort the list by filename.

  Returns the names of all entries in this directory (filenames, no path).

- entry (name)

  returns KArchiveEntry

  Argument | Type | Default
  --- | --- | ---
  name | QString |

  Returns the entry with the given name.

  name - may be "test1", "mydir/test3", "mydir/mysubdir/test3", etc. Returns a pointer to the entry in the directory.

- isDirectory ( )

  returns bool

  Checks whether this entry is a directory. Returns true, since this entry is a directory

- virtual_hook (id, data)

  returns Nothing
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  id | int |
  data | void |