KIO::MkpathJob Class

class KIO::MkpathJob

A KIO job that creates a directory, after creating all parent directories necessary for this. More...

Header: #include <KIO/MkpathJob>
CMake: find_package(KF6 REQUIRED COMPONENTS KIO)
target_link_libraries(mytarget PRIVATE KF6::KIOCore)
Since: 5.4
Inherits: KIO::Job

Signals

void directoryCreated(const QUrl &url)
(since 5.4) KIO::MkpathJob *mkpath(const QUrl &url, const QUrl &baseUrl = QUrl(), KIO::JobFlags flags = DefaultFlags)

Detailed Description

See also KIO::mkpath() and KIO::mkdir().

Member Function Documentation

[signal] void MkpathJob::directoryCreated(const QUrl &url)

Signals that a directory was created.

Related Non-Members

[since 5.4] KIO::MkpathJob *mkpath(const QUrl &url, const QUrl &baseUrl = QUrl(), KIO::JobFlags flags = DefaultFlags)

Creates a directory, creating parent directories as needed. Unlike KIO::mkdir(), the job will succeed if the directory exists already.

url The URL of the directory to create.

baseUrl Optionally, the URL to start from, which is known to exist (e.g. the directory currently listed).

flags mkpath() supports HideProgressInfo.

If baseUrl is not an ancestor of url, baseUrl will be ignored.

Returns a pointer to the job handling the operation.

This function was introduced in 5.4.