DirectorySizeJob Class Reference
from PyKDE4.kio import *
Inherits: KIO.Job → KCompositeJob → KJob → QObject
Namespace: KIO
Detailed Description
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)
Method Documentation
__init__ |
( |
self, |
|
|
|
DirectorySizeJobPrivate |
dd |
|
) |
|
|
|
slotResult |
( |
self, |
|
|
|
KJob |
job |
|
) |
|
|
|
KIO.filesize_t totalFiles |
( |
|
self ) |
|
- Returns:
- the total number of files (counting symlinks to files, sockets
and character devices as files) in this directory and all sub-directories
KIO.filesize_t totalSize |
( |
|
self ) |
|
- Returns:
- the size we found
KIO.filesize_t totalSubdirs |
( |
|
self ) |
|
- Returns:
- the total number of sub-directories found (not including the
directory the search started from and treating symlinks to directories
as directories)