mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Treat .lnk files as normal files without hydrating them or creating a placeholder.
Signed-off-by: allexzander <blackslayer4@gmail.com>
This commit is contained in:
parent
3906ae0922
commit
13f4bb541d
2 changed files with 7 additions and 7 deletions
|
@ -510,13 +510,13 @@ void ProcessDirectoryJob::processFileAnalyzeRemoteInfo(
|
|||
&& item->_type == ItemTypeFile
|
||||
&& opts._vfs->mode() != Vfs::Off
|
||||
&& _pinState != PinState::AlwaysLocal
|
||||
#ifdef Q_OS_WIN
|
||||
// on Windows, ".lnk" files are causing troubles with QFileInfo - always treat them as normal files
|
||||
&& !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);
|
||||
}
|
||||
|
|
|
@ -197,9 +197,9 @@ bool VfsCfApi::statTypeVirtualFile(csync_file_stat_t *stat, void *statData)
|
|||
return true;
|
||||
} else if (!isSparseFile && isUnpinned){
|
||||
if (!FileSystem::isLnkFile(stat->path)) {
|
||||
stat->type = ItemTypeVirtualFileDehydration;
|
||||
stat->type = ItemTypeVirtualFileDehydration;
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
} else if (isSparseFile) {
|
||||
stat->type = ItemTypeVirtualFile;
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue