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

@param string $basepath
@param \SplFileInfo $file
Get relative key for a file