platform/platform_filesystem.c
/*	Checks whether a file has been modified or not.
*/
Checks whether a file has been modified or not.
Checks whether a file has been modified or not .
bool plIsFileModified(time_t oldtime, const char *path)
{
	if (!oldtime)
	{
		plSetError("Invalid time, skipping check!\n");
		return false;
	}
	struct stat sAttributes;
	if (stat(path, &sAttributes) == -1)
	{
		plSetError("Failed to get file stats!\n");
		return false;
	}
	if (sAttributes.st_mtime > oldtime)
		return true;
	return false;
}
bool plIsFileModified ( time_t oldtime , const char * path ) { if ( ! oldtime ) { plSetError ( " \n " ) ; return false ; } struct stat sAttributes ; if ( stat ( path , & sAttributes ) == -1 ) { plSetError ( " \n " ) ; return false ; } if ( sAttributes . st_mtime > oldtime ) return true ; return false ; }
Checks whether a file has been modified or not.
Checks whether a file has been modified or not .