public function getVersion($path) { $file = $this->directory->getFile($path); try { return substr(md5($this->baseSalt . $file->getFullPath() . $file->getTimestamp()), 0, 10); } catch (IOException $e) { return ''; } }