protected function getFileKey($basePath, \SplFileInfo $file)
    {
        $baseLength = strlen(rtrim($basePath, DIRECTORY_SEPARATOR));
        
        return substr($file->getPath(), $baseLength) . DIRECTORY_SEPARATOR 
                . $file->getBasename('.' . $file->getExtension());
    }