KIO::DirectorySizeJob Class
Header: | #include <DirectorySizeJob> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KIO) target_link_libraries(mytarget PRIVATE KF6::KIOCore) |
Inherits: | KIO::Job |
Public Functions
KIO::filesize_t | totalFiles() const |
KIO::filesize_t | totalSize() const |
KIO::filesize_t | totalSubdirs() const |
Detailed Description
@class KIO::DirectorySizeJob directorysizejob.h <KIO/DirectorySizeJob>
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)
Usage: see KIO::directorySize.
Member Function Documentation
KIO::filesize_t DirectorySizeJob::totalFiles() const
@return 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 DirectorySizeJob::totalSize() const
@return the size we found
KIO::filesize_t DirectorySizeJob::totalSubdirs() const
@return the total number of sub-directories found (not including the directory the search started from and treating symlinks to directories as directories)