public function isFolder($path = null)
    {
        //argument 1 must be a string
        Argument::i()->test(1, 'string', 'null');

        //if path is string
        if (is_string($path)) {
            //return path appended
            return is_dir($this->data.'/'.$path);
        }

        return is_dir($this->data);
    }
public function isFolder($path = null)
    {
        //argument 1 must be a string
        Argument::i()->test(1, 'string', 'null');

        //if path is string
        if (is_string($path)) {
            //return path appended
            return is_dir($this->data.'/'.$path);
        }

        return is_dir($this->data);
    }
public function isFolder ( $ path = null ) { //argument 1 must be a string Argument :: i ( ) -> test ( 1 , 'string' , 'null' ) ; //if path is string if ( is_string ( $ path ) ) { //return path appended return is_dir ( $ this -> data . '/' . $ path ) ; } return is_dir ( $ this -> data ) ; }
Checks to see if this
path is a real file

@param string|null $path the path to test against

@return bool
Checks to see if this path is a real file