24 lines
797 B
C++
24 lines
797 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// SPDX-FileCopyrightText: 2025 Hannah von Reth <h.vonreth@opencloud.eu>
|
|
|
|
#pragma once
|
|
|
|
#include "libsync/common/result.h"
|
|
#include "libsync/qsferasynclib.h"
|
|
|
|
#include <filesystem>
|
|
#include <optional>
|
|
|
|
#include <QString>
|
|
|
|
namespace OCC {
|
|
namespace FileSystem {
|
|
namespace Xattr {
|
|
QSFERA_SYNC_EXPORT bool supportsxattr(const std::filesystem::path &path);
|
|
QSFERA_SYNC_EXPORT std::optional<QByteArray> getxattr(const std::filesystem::path &path, const QString &name);
|
|
QSFERA_SYNC_EXPORT Result<void, QString> setxattr(const std::filesystem::path &path, const QString &name, const QByteArray &value);
|
|
QSFERA_SYNC_EXPORT Result<void, QString> removexattr(const std::filesystem::path &path, const QString &name);
|
|
}
|
|
}
|
|
}
|