&& item->_type == ItemTypeFile
&& opts._vfs->mode() != Vfs::Off
&& _pinState != PinState::AlwaysLocal
- ) {
- item->_type = ItemTypeVirtualFile;
#ifdef Q_OS_WIN
- if(FileSystem::isLnkFile(path._server)) {
- item->_type = ItemTypeVirtualFileDownload;
- }
+ // on Windows, ".lnk" files are causing troubles with QFileInfo - always treat them as normal files
+ && !FileSystem::isLnkFile(path._server)
#endif
+ ) {
+ item->_type = ItemTypeVirtualFile;
+
if (isVfsWithSuffix())
addVirtualFileSuffix(tmp_path._original);
}
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;