The ".sys.admin#recall#" is the recall file and should not be ignored
even if hidden.
The remote discovery do not need to detect hidden files because it
is already detected by csync in all cases. So this avoid code duplication
* local stat function.
*/
if( d_name[0] == '.' ) {
- dirent->flags |= CSYNC_VIO_FILE_FLAGS_HIDDEN;
+ if (strcmp(".sys.admin#recall#", d_name) != 0) { /* recall file shall not be ignored (#4420) */
+ dirent->flags |= CSYNC_VIO_FILE_FLAGS_HIDDEN;
+ }
}
if( res == 0) {
if( slashPos > -1 ) {
fileRef = file.midRef(slashPos+1);
}
- if( fileRef.startsWith(QChar('.')) ) {
- file_stat->flags = CSYNC_VIO_FILE_FLAGS_HIDDEN;
- }
//qDebug() << "!!!!" << file_stat << file_stat->name << file_stat->file_id << map.count();
_results.append(file_stat);
}