Skip to content

Commit 7f99622

Browse files
authored
Merge pull request #19 from colinodell/feature/random-unique-paths
Use uniqid() to avoid collisions in backup paths
2 parents a4f7bfd + 81d5603 commit 7f99622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PathPreserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function preserve()
9999
continue;
100100
}
101101

102-
$unique = $installPath.' '.time();
102+
$unique = $installPath.' '.uniqid('', true);
103103
$cacheRoot = $this->filesystem->normalizePath($this->cacheDir.'/preserve-paths/'.sha1($unique));
104104
$this->filesystem->ensureDirectoryExists($cacheRoot);
105105

0 commit comments

Comments
 (0)