Windows: Don't ignore files with FILE_ATTRIBUTE_TEMPORARY

Too many applications incorrectly use this attribute.

For #6696 #6610
This commit is contained in:
Markus Goetz 2018-08-09 13:37:50 +02:00 committed by Camila San
parent 90d3917481
commit 4f83bba829
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4

View file

@ -181,7 +181,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;