Skip to content

Commit

Permalink
Merge pull request #19 from colinodell/feature/random-unique-paths
Browse files Browse the repository at this point in the history
Use uniqid() to avoid collisions in backup paths
  • Loading branch information
derhasi authored Jul 20, 2017
2 parents a4f7bfd + 81d5603 commit 7f99622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PathPreserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function preserve()
continue;
}

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

Expand Down

0 comments on commit 7f99622

Please sign in to comment.