org.kde.koala
public class KDirSize extends Job
UNKNOWN: Computes a directory size (similar to "du", but doesn't give the same results since we simply sum up the dir and file sizes, whereas du speaks disk blocks)
Constructor Summary | |
---|---|
protected | KDirSize(Class dummy) |
KDirSize(KURL directory) | |
KDirSize(ArrayList lstItems) |
Method Summary | |
---|---|
String | className() |
static long | dirSize(KURL directory)
Synchronous method - you get the result as soon as
the call returns. |
static KDirSize | dirSizeJob(KURL directory)
Asynchronous method. |
static KDirSize | dirSizeJob(ArrayList lstItems)
Asynchronous method. |
QMetaObject | metaObject() |
protected void | processList() |
protected void | setSync() |
protected void | slotResult(Job job) |
protected void | startNextJob(KURL url) |
long | totalFiles() |
long | totalSize() |
long | totalSubdirs() |
UNKNOWN: Synchronous method - you get the result as soon as the call returns.
UNKNOWN: Asynchronous method.
lstItems.
The reason we asks for items instead of just urls, is so that
we directly know if the item is a file or a directory,
and in case of a file, we already have its size.UNKNOWN: Asynchronous method.
UNKNOWN:
Returns: the total number of files (counting symlinks to files, sockets and character devices as files) in this directory and all sub-directories
UNKNOWN:
Returns: the size we found
UNKNOWN:
Returns: the total number of sub-directories found (not including the directory the search started from and treating symlinks to directories as directories)
UNKNOWN: