diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-09-17 15:50:23 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-09-21 11:30:03 +0300 |
commit | 08985e7d73733a4c70e7e66850adcf7f1fd33f36 (patch) | |
tree | 8d94bbbc70d0608f159c355f5c2ddc31be62ae7f /src/common | |
parent | 15dbff6635ad25aed6f56848131e3b68b04f0778 (diff) |
Don't ignore suffix placeholder
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/vfs.cpp | 5 | ||||
-rw-r--r-- | src/common/vfs.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/common/vfs.cpp b/src/common/vfs.cpp index 55cbcc942..3d528c7e2 100644 --- a/src/common/vfs.cpp +++ b/src/common/vfs.cpp @@ -34,6 +34,11 @@ Vfs::Vfs(QObject* parent) { } +QString Vfs::underlyingFileName(const QString &fileName) const +{ + return fileName; +} + Vfs::~Vfs() = default; QString Vfs::modeToString(Mode mode) diff --git a/src/common/vfs.h b/src/common/vfs.h index e08a3c8d8..5e3eda316 100644 --- a/src/common/vfs.h +++ b/src/common/vfs.h @@ -127,10 +127,13 @@ public: /// For WithSuffix modes: the suffix (including the dot) virtual QString fileSuffix() const = 0; + /// The fileName without fileSuffix + /// TODO: better naming welcome + virtual QString underlyingFileName(const QString &fileName) const; + /// Access to the parameters the instance was start()ed with. const VfsSetupParams ¶ms() const { return _setupParams; } - /** Initializes interaction with the VFS provider. * * The plugin-specific work is done in startImpl(). |