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

        return pathinfo($path, PATHINFO_BASENAME);
    }