mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-05-14 02:34:09 +02:00
Vfs suffix: Require suffix when creating placeholder files
This commit is contained in:
parent
3f55f9302e
commit
5e5b0b3f76
@ -63,6 +63,11 @@ void VfsSuffix::createPlaceholder(const SyncFileItem &item)
|
||||
{
|
||||
// The concrete shape of the placeholder is also used in isDehydratedPlaceholder() below
|
||||
QString fn = _setupParams.filesystemPath + item._file;
|
||||
if (!fn.endsWith(fileSuffix())) {
|
||||
ASSERT(false, "vfs file isn't ending with suffix");
|
||||
return;
|
||||
}
|
||||
|
||||
QFile file(fn);
|
||||
file.open(QFile::ReadWrite | QFile::Truncate);
|
||||
file.write(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user