Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/csync
diff options
context:
space:
mode:
authorallexzander <blackslayer4@gmail.com>2021-04-06 10:36:35 +0300
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>2021-04-07 12:08:02 +0300
commit82953d0601787ba3557b5d5fb852516d589cec1c (patch)
treeefc829ba50086f54f607ee7345cd66b1506785e8 /src/csync
parentde85b79bb864406543b118b37110f51e73ac2c72 (diff)
Fix review comments.
Signed-off-by: allexzander <blackslayer4@gmail.com>
Diffstat (limited to 'src/csync')
-rw-r--r--src/csync/vio/csync_vio_local_win.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/csync/vio/csync_vio_local_win.cpp b/src/csync/vio/csync_vio_local_win.cpp
index cc31927d5..7aa07f4da 100644
--- a/src/csync/vio/csync_vio_local_win.cpp
+++ b/src/csync/vio/csync_vio_local_win.cpp
@@ -163,7 +163,8 @@ std::unique_ptr<csync_file_stat_t> csync_vio_local_readdir(csync_vio_handle_t *h
} else if (handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
file_stat->type = ItemTypeDirectory;
} else {
- file_stat->type = ItemTypeFile;
+ // exclude ".lnk" files as they are not essential, but, causing troubles when enabling the VFS due to QFileInfo::isDir() and other methods are freezing, which causes the ".lnk" files to start hydrating and freezing the app eventually.
+ file_stat->type = !OCC::FileSystem::isLnkFile(path) ? ItemTypeFile : ItemTypeSoftLink;
}
/* Check for the hidden flag */