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
parent 84b98ca29f
commit d0bdccc60a

View File

@ -182,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;