vgui2/src/system_posix.cpp
double CSystem::GetFreeDiskSpace(const char *path)
{
	struct statfs64 buf;
	int ret = statfs64( path, &buf );
	if ( ret < 0 )
		return 0.0;
	return (double) ( buf.f_bsize * buf.f_bfree );
}
//-----------------------------------------------------------------------------
// Purpose: returns the amount of available disk space, in bytes, on the specified path
//-----------------------------------------------------------------------------
returns the amount of available disk space, in bytes, on the specified path
returns the amount of available disk space in bytes on the specified path
double CSystem::GetFreeDiskSpace(const char *path)
{
	struct statfs64 buf;
	int ret = statfs64( path, &buf );
	if ( ret < 0 )
		return 0.0;
	return (double) ( buf.f_bsize * buf.f_bfree );
}
double CSystem :: GetFreeDiskSpace ( const char * path ) { struct statfs64 buf ; int ret = statfs64 ( path , & buf ) ; if ( ret < 0 ) return 0.0 ; return ( double ) ( buf . f_bsize * buf . f_bfree ) ; }
Purpose: returns the amount of available disk space, in bytes, on the specified path
Purpose : returns the amount of available disk space in bytes on the specified path