Different ways to create a directory

Raphael Kubo da Costa kubito at gmail.com
Thu Jul 30 21:02:07 BST 2009

(I'm forwarding the message I sent to kde-devel according to tsdgeos'
suggestion. If it's more appropriate to keep it on kde-devel, please
tell me)

Hi there,

Currently, I can see that a directory can be created with QDir::mkdir,
KIO::mkdir, NetAccess::mkdir (a wrapper around KIO::mkdir for
synchronous usage) and KStandardDirs::makeDir.

Is any of these frowned upon, and is any of them the most recommended?
What's the purpose of KStandardDirs::makeDir and other methods such as
exists and checkAccess? Aren't they just duplicating functionality
available elsewhere?

More information about the kde-core-devel mailing list