mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Placeholder: Don't contain "stub"
This commit is contained in:
parent
c80ee0ea48
commit
34d40e6c67
@ -352,8 +352,8 @@ void PropagateDownloadFile::start()
|
||||
auto fn = propagator()->getFilePath(_item->_file);
|
||||
qCDebug(lcPropagateDownload) << "creating placeholder file" << fn;
|
||||
QFile file(fn);
|
||||
file.open(QFile::ReadWrite);
|
||||
file.write("stub");
|
||||
file.open(QFile::ReadWrite | QFile::Truncate);
|
||||
file.write(" ");
|
||||
file.close();
|
||||
updateMetadata(false);
|
||||
return;
|
||||
|
||||
@ -1000,7 +1000,7 @@ private:
|
||||
qWarning() << "Empty file at:" << diskChild.filePath();
|
||||
continue;
|
||||
}
|
||||
char contentChar = f.read(1).at(0);
|
||||
char contentChar = content.at(0);
|
||||
templateFi.children.insert(diskChild.fileName(), FileInfo{diskChild.fileName(), diskChild.size(), contentChar});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user