protected function getRelativeName(ResourceInterface $file, ResourceInterface $directory)
    {
        return substr((string) $file, strlen((string) $directory));
    }
protected function getRelativeName(ResourceInterface $file, ResourceInterface $directory)
    {
        return substr((string) $file, strlen((string) $directory));
    }
protected function getRelativeName ( ResourceInterface $ file , ResourceInterface $ directory ) { return substr ( ( string ) $ file , strlen ( ( string ) $ directory ) ) ; }
Returns the relative version of a filename.

@param ResourceInterface $file      The file
@param ResourceInterface $directory The directory

@return string The name to compare with files from other directories
Returns the relative version of a filename .