KFileUtils Namespace Reference


KCOREADDONS_EXPORT QString suggestName (const QUrl &baseURL, const QString &oldName)

Detailed Description

A namespace for KFileUtils globals.

Function Documentation

QString KFileUtils::suggestName ( const QUrl baseURL,
const QString oldName 

Given a directory path and a filename (which usually exists already), this function returns a suggested name for a file that doesn't exist in that directory.

The existence is only checked for local urls though. The suggested file name is of the form "foo 1", "foo 2" etc.


Definition at line 15 of file kfileutils.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 23:01:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.