diff options
Diffstat (limited to 'src/csync/vio/csync_vio_local_win.cpp')
-rw-r--r-- | src/csync/vio/csync_vio_local_win.cpp | 3 |
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 1c9a5907f..9ec585a43 100644 --- a/src/csync/vio/csync_vio_local_win.cpp +++ b/src/csync/vio/csync_vio_local_win.cpp @@ -156,6 +156,7 @@ std::unique_ptr<csync_file_stat_t> csync_vio_local_readdir(csync_vio_handle_t *d // might be error, check! int dwError = GetLastError(); if (dwError != ERROR_NO_MORE_FILES) { + qCWarning(lcCSyncVIOLocal, "FindNextFile error %d", dwError); errno = EACCES; // no more files is fine. Otherwise EACCESS } return nullptr; @@ -181,7 +182,7 @@ std::unique_ptr<csync_file_stat_t> csync_vio_local_readdir(csync_vio_handle_t *d } } else if (handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_DEVICE || handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_OFFLINE - || handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_TEMPORARY) { + ) { file_stat->type = ItemTypeSkip; } else if (handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { file_stat->type = ItemTypeDirectory; |