MCPcopy Create free account
hub / github.com/error311/FileRise / getUniqueFileName

Method getUniqueFileName

src/FileRise/Domain/FileModel.php:377–380  ·  view source on GitHub ↗

* Generates a unique file name if a file with the same name exists in the destination directory. * * @param string $destDir * @param string $fileName * @return string */

($destDir, $fileName)

Source from the content-addressed store, hash-verified

375 * @return string
376 */
377 private static function getUniqueFileName($destDir, $fileName)
378 {
379 return self::getUniqueFileNameForAdapter(self::storage(), $destDir, $fileName);
380 }
381
382 private static function getUniqueFileNameForAdapter(StorageAdapterInterface $storage, string $destDir, string $fileName): string
383 {

Callers 3

copyFilesMethod · 0.95
moveFilesMethod · 0.95
renameFileMethod · 0.95

Calls 2

storageMethod · 0.95

Tested by

no test coverage detected