Krita Source Code Documentation
Loading...
Searching...
No Matches
KisImportExportAdditionalChecks.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Agata Cacko <cacko.azh@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8#include <QFileInfo>
9
10
12{
13 QFileInfo finfo(filepath);
14 return finfo.isWritable();
15}
16
18{
19 QFileInfo finfo(filepath);
20 return finfo.isReadable();
21}
22
24{
25 return QFile::exists(filepath);
26}
27