From db8b5a235d87d58fb0889dda02fa8bbca4891a46 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 27 Oct 2006 00:39:45 +0000 Subject: [PATCH] Skip Win32 hidden and system files when bulk-uploading. --- src/sbbs3/upload.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sbbs3/upload.cpp b/src/sbbs3/upload.cpp index 8071e345af..4ff7f6b48c 100644 --- a/src/sbbs3/upload.cpp +++ b/src/sbbs3/upload.cpp @@ -575,6 +575,11 @@ bool sbbs_t::bulkupload(uint dirnum) sprintf(str,"%s%s",path,dirent->d_name); if(isdir(str)) continue; +#ifdef _WIN32 + /* Skip hidden/system files on Win32 */ + if(getfattr(str)&(_A_HIDDEN|_A_SYSTEM)) + continue; +#endif #ifdef _WIN32 GetShortPathName(str,spath,sizeof(spath)); #else -- GitLab