protected function allFiles(FilesystemInterface $filesystem, $path)
    {
        $files = [];

        foreach ($filesystem->listContents($path, true) as $file) {
            if ($file['type'] == 'file') {
                $files[] = $file['path'];
            }
        }

        return $files;
    }