public function getBasename(string $path) : string
    {
        if (!$this->exists($path)) {
            throw new FileSystemException("Path $path not found");
        }

        return pathinfo($path, PATHINFO_BASENAME);
    }
public function getBasename(string $path) : string
    {
        if (!$this->exists($path)) {
            throw new FileSystemException("Path $path not found");
        }

        return pathinfo($path, PATHINFO_BASENAME);
    }
public function getBasename ( string $ path ) : string { if ( ! $ this -> exists ( $ path ) ) { throw new FileSystemException ( "Path $path not found" ) ; } return pathinfo ( $ path , PATHINFO_BASENAME ) ; }
Gets the basename of a path

@param string $path The path to check
@return string The basename of the path
@throws FileSystemException Thrown if the path does not exist
Gets the basename of a path