Pages
API Documentation
On this page

KIO::MkpathJob Class

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)
  • Inherits: KIO::Job

List of all members, including inherited members

Signals

Detailed Description

See also KIO::mkpath(), KIO::mkdir()

Member Function Documentation

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

Signals that a directory was created.

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.