We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4775ce4 commit d17fb28Copy full SHA for d17fb28
lib/private/Snowflake/FileSequence.php
@@ -27,12 +27,15 @@ class FileSequence implements ISequence {
27
public function __construct(
28
ITempManager $tempManager,
29
) {
30
- $this->workDir = $tempManager->getTempBaseDir() . '/' . self::LOCK_FILE_DIRECTORY;
+ $this->workDir = $tempManager->getTempBaseDir() . '/' . self::LOCK_FILE_DIRECTORY . '/';
31
$this->ensureWorkdirExists();
32
}
33
34
private function ensureWorkdirExists(): void {
35
if (is_dir($this->workDir)) {
36
+ if (!is_writable($this->workDir)) {
37
+ throw new \Exception('File sequence directory exists but is not writable');
38
+ }
39
return;
40
41
0 commit comments