Пример #1
0
 /**
  * Hashes a file identifier, taking the case sensitivity of the file system
  * into account. This helps mitigating problems with case-insensitive
  * databases.
  *
  * @param string|FileInterface $file
  * @return string
  */
 public function hashFileIdentifier($file)
 {
     if (is_object($file) && $file instanceof FileInterface) {
         /** @var FileInterface $file */
         $file = $file->getIdentifier();
     }
     return $this->driver->hashIdentifier($file);
 }