2681 #ifndef SYS_LINK_EXT // if not windows |
2681 #ifndef SYS_LINK_EXT // if not windows |
2682 SYS_STAT targetstat; |
2682 SYS_STAT targetstat; |
2683 if(!sys_stat(file_path, &targetstat)) { |
2683 if(!sys_stat(file_path, &targetstat)) { |
2684 res->isdirectory = S_ISDIR(targetstat.st_mode); |
2684 res->isdirectory = S_ISDIR(targetstat.st_mode); |
2685 |
2685 |
2686 int nofollowextern = (dir->symlink & SYNC_SYMLINK_EXTERN_NOFOLLOW) == SYNC_SYMLINK_EXTERN_NOFOLLOW; |
2686 int nofollowextern = (dir->symlink & SYNC_SYMLINK_IGNORE_EXTERN) == SYNC_SYMLINK_IGNORE_EXTERN; |
2687 int nofollowintern = (dir->symlink & SYNC_SYMLINK_INTERN_NOFOLLOW) == SYNC_SYMLINK_INTERN_NOFOLLOW; |
2687 int nofollowintern = (dir->symlink & SYNC_SYMLINK_IGNORE_INTERN) == SYNC_SYMLINK_IGNORE_INTERN; |
2688 if(isintern && nofollowintern) { |
2688 if(isintern && nofollowintern) { |
2689 skip_file = TRUE; |
2689 skip_file = TRUE; |
2690 } else if(!isintern && nofollowextern) { |
2690 } else if(!isintern && nofollowextern) { |
2691 skip_file = TRUE; |
2691 skip_file = TRUE; |
2692 } |
2692 } |