Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F29856895
path-helper.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1020 B
Subscribers
None
path-helper.h
View Options
/* -*- mode: c++; c-basic-offset:4 -*-
utils/path-helper.h
This file is part of Kleopatra, the KDE keymanager
SPDX-FileCopyrightText: 2009 Klarälvdalens Datakonsult AB
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include
<QtGlobal>
class
QString
;
#include
<QStringList>
class
QDir
;
class
QFileInfo
;
namespace
Kleo
{
QString
heuristicBaseDirectory
(
const
QStringList
&
files
);
QStringList
makeRelativeTo
(
const
QDir
&
dir
,
const
QStringList
&
files
);
QStringList
makeRelativeTo
(
const
QString
&
dir
,
const
QStringList
&
files
);
QString
stripSuffix
(
const
QString
&
fileName
);
/**
* Checks if the file/directory referenced by \p fi is writable.
*
* On Windows, a temporary file is created to check if a directory is writable.
* \sa QFileInfo::isWritable
*/
bool
isWritable
(
const
QFileInfo
&
fi
);
#ifdef Q_OS_WIN
void
recursivelyRemovePath
(
const
QString
&
path
);
bool
recursivelyCopy
(
const
QString
&
src
,
const
QString
&
dest
);
bool
moveDir
(
const
QString
&
src
,
const
QString
&
dest
);
#endif
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Thu, Oct 16, 4:49 AM (1 d, 3 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f9/72/7eaa3f96a878b5b01ab3049f16e3
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment