engine: filesystem: avoid FS_SysFolderExists spam if stat returned ENOTDIR

This commit is contained in:
Alibek Omarov 2022-06-14 03:27:56 +03:00
parent 347c6d6a91
commit 45bf927c74
1 changed files with 2 additions and 1 deletions

View File

@ -2536,7 +2536,8 @@ qboolean FS_SysFolderExists( const char *path )
if( stat( path, &buf ) < 0 )
{
Con_Reportf( S_ERROR "FS_SysFolderExists: problem while opening dir: %s\n", strerror( errno ));
if( errno != ENOTDIR )
Con_Reportf( S_ERROR "FS_SysFolderExists: problem while opening dir: %s\n", strerror( errno ));
return false;
}