Skip to content

Commit 0f00229

Browse files
committed
- directory path update
1 parent fd32436 commit 0f00229

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Processors/File.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(array $settings)
4343

4444
umask(umask() | 0002);
4545
$this->ext = (string)($settings['extension'] ?? '.log');
46-
$this->dir = rtrim((string)$settings['dir'], '/') . '/';
46+
$this->dir = rtrim((string)$settings['dir'], '/');
4747

4848
if (false === is_dir($this->dir)) {
4949
throw FileProcessorException::directoryDoesNotExist($this->dir);
@@ -52,6 +52,8 @@ public function __construct(array $settings)
5252
if (false === is_writable($this->dir)) {
5353
throw FileProcessorException::directoryIsNotWritable($this->dir);
5454
}
55+
56+
$this->dir .= '/';
5557
}
5658

5759
protected function parse(array $message): void

0 commit comments

Comments
 (0)