This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to check if a directory exists on app startup?

Tags: None
(comma "," separated)
Petross404 (petross)
Registered Member
Posts
16
Karma
0
Hello, I want to create a directory to store some pics that my program has generated. The user should choose where this directory should be but upon startup the app must check if the specified directory exists or if the user wants to create one (well, this should be the case for first run).

I don't know what am I looking for over here https://api.kde.org/frameworks/kio/html/namespaceKIO.html.
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS
Petross404 (petross) wrote:I don't know what am I looking for over here https://api.kde.org/frameworks/kio/html/namespaceKIO.html.

I am also a newbie in the forest of KDE API, but i would say, take a look at KFileWidget or KFileCustomDialog (or QFileDialog) for selecting folder and QDir to check if the folder exists.
Petross404 (petross)
Registered Member
Posts
16
Karma
0
raphaelra wrote:
Petross404 (petross) wrote:I don't know what am I looking for over here https://api.kde.org/frameworks/kio/html/namespaceKIO.html.

I am also a newbie in the forest of KDE API, but i would say, take a look at KFileWidget or KFileCustomDialog (or QFileDialog) for selecting folder and QDir to check if the folder exists.


Thank you, I will. If I manage to pull something out of this I will mark this as solved.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell