/** * Build and return the target file path of the resolution file * * @param string $extension * @param string $imageName * @return string $targetFilePath */ protected function generateAbsoluteResolutionPathAndFilename($extension = 'jpg', $imageName = '') { // We need an UID for the item file $nextUid = $this->resolutionFileCacheRepository->getCurrentUid(); // Get a path in the hash filesystem $resolutionFileName = $this->getMeaningfulTempFilePrefix($imageName) . substr(uniqid($nextUid . '_'), 0, 16); $targetFilePath = $this->hashFileSystem->createAndGetAbsolutePathById($nextUid) . '/' . $resolutionFileName . '.' . $extension; return $targetFilePath; }
/** * @return int file count */ public function getCacheFileCount() { return $this->resolutionFileCacheRepository->countAll(); }