mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 14:05:58 +03:00
Add find method to DiskFileModifier class in SyncEngineTestUtils
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
4681d27de5
commit
67e6546e1a
2 changed files with 8 additions and 0 deletions
|
@ -113,6 +113,12 @@ void DiskFileModifier::setE2EE([[maybe_unused]] const QString &relativePath, [[m
|
|||
{
|
||||
}
|
||||
|
||||
QFile DiskFileModifier::find(const QString &relativePath) const
|
||||
{
|
||||
const auto path = _rootDir.filePath(relativePath);
|
||||
return QFile(path);
|
||||
}
|
||||
|
||||
FileInfo FileInfo::A12_B12_C12_S12()
|
||||
{
|
||||
FileInfo fi { QString {}, {
|
||||
|
|
|
@ -108,6 +108,8 @@ public:
|
|||
void setModTime(const QString &relativePath, const QDateTime &modTime) override;
|
||||
void modifyLockState(const QString &relativePath, LockState lockState, int lockType, const QString &lockOwner, const QString &lockOwnerId, const QString &lockEditorId, quint64 lockTime, quint64 lockTimeout) override;
|
||||
void setE2EE(const QString &relativepath, const bool enabled) override;
|
||||
|
||||
[[nodiscard]] QFile find(const QString &relativePath) const;
|
||||
};
|
||||
|
||||
class FileInfo : public FileModifier
|
||||
|
|
Loading…
Reference in a new issue