src/FS/File/Reader.php
public function isOwner( $user = NULL )
	{
		$user	= $user ? $user : get_current_user();
		if( !function_exists( 'posix_getpwuid' ) )
			return TRUE;
		$uid	= fileowner( $this->fileName );
		if( !$uid )
			return TRUE;
		$owner	= posix_getpwuid( $uid );
		if( !$owner )
			return TRUE;
		print_m( $owner );
		return $user == $owner['name'];
	}
public function isOwner( $user = NULL )
	{
		$user	= $user ? $user : get_current_user();
		if( !function_exists( 'posix_getpwuid' ) )
			return TRUE;
		$uid	= fileowner( $this->fileName );
		if( !$uid )
			return TRUE;
		$owner	= posix_getpwuid( $uid );
		if( !$owner )
			return TRUE;
		print_m( $owner );
		return $user == $owner['name'];
	}
public function isOwner ( $ user = NULL ) { $ user = $ user ? $ user : get_current_user ( ) ; if ( ! function_exists ( 'posix_getpwuid' ) ) return TRUE ; $ uid = fileowner ( $ this -> fileName ) ; if ( ! $ uid ) return TRUE ; $ owner = posix_getpwuid ( $ uid ) ; if ( ! $ owner ) return TRUE ; print_m ( $ owner ) ; return $ user == $ owner [ 'name' ] ; }
Indicates whether a given user is owner of current file.
On Windows this method always returns TRUE.
@access		public
@param		string		$user		Name of user to check ownership for, current user by default
@return		boolean
Indicates whether a given user is owner of current file . On Windows this method always returns TRUE .