mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-26 22:35:55 +03:00
Another way to fix this.
Signed-off-by: allexzander <blackslayer4@gmail.com>
This commit is contained in:
parent
7235c708dc
commit
3906ae0922
3 changed files with 9 additions and 9 deletions
|
@ -510,11 +510,13 @@ void ProcessDirectoryJob::processFileAnalyzeRemoteInfo(
|
|||
&& item->_type == ItemTypeFile
|
||||
&& opts._vfs->mode() != Vfs::Off
|
||||
&& _pinState != PinState::AlwaysLocal
|
||||
#ifdef Q_OS_WIN
|
||||
&& !FileSystem::isLnkFile(path._server)
|
||||
#endif
|
||||
) {
|
||||
item->_type = ItemTypeVirtualFile;
|
||||
#ifdef Q_OS_WIN
|
||||
if(FileSystem::isLnkFile(path._server)) {
|
||||
item->_type = ItemTypeVirtualFileDownload;
|
||||
}
|
||||
#endif
|
||||
if (isVfsWithSuffix())
|
||||
addVirtualFileSuffix(tmp_path._original);
|
||||
}
|
||||
|
|
|
@ -345,11 +345,7 @@ void OCC::SyncEngine::slotItemDiscovered(const OCC::SyncFileItemPtr &item)
|
|||
rec._serverHasIgnoredFiles |= prev._serverHasIgnoredFiles;
|
||||
|
||||
// Ensure it's a placeholder file on disk
|
||||
if (item->_type == ItemTypeFile
|
||||
#ifdef Q_OS_WIN
|
||||
&& !FileSystem::isLnkFile(filePath)
|
||||
#endif
|
||||
) {
|
||||
if (item->_type == ItemTypeFile) {
|
||||
const auto result = _syncOptions._vfs->convertToPlaceholder(filePath, *item);
|
||||
if (!result) {
|
||||
item->_instruction = CSYNC_INSTRUCTION_ERROR;
|
||||
|
|
|
@ -196,7 +196,9 @@ bool VfsCfApi::statTypeVirtualFile(csync_file_stat_t *stat, void *statData)
|
|||
stat->type = ItemTypeVirtualFileDownload;
|
||||
return true;
|
||||
} else if (!isSparseFile && isUnpinned){
|
||||
stat->type = ItemTypeVirtualFileDehydration;
|
||||
if (!FileSystem::isLnkFile(stat->path)) {
|
||||
stat->type = ItemTypeVirtualFileDehydration;
|
||||
}
|
||||
return true;
|
||||
} else if (isSparseFile) {
|
||||
stat->type = ItemTypeVirtualFile;
|
||||
|
|
Loading…
Reference in a new issue