We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd32436 commit 0f00229Copy full SHA for 0f00229
1 file changed
Processors/File.php
@@ -43,7 +43,7 @@ public function __construct(array $settings)
43
44
umask(umask() | 0002);
45
$this->ext = (string)($settings['extension'] ?? '.log');
46
- $this->dir = rtrim((string)$settings['dir'], '/') . '/';
+ $this->dir = rtrim((string)$settings['dir'], '/');
47
48
if (false === is_dir($this->dir)) {
49
throw FileProcessorException::directoryDoesNotExist($this->dir);
@@ -52,6 +52,8 @@ public function __construct(array $settings)
52
if (false === is_writable($this->dir)) {
53
throw FileProcessorException::directoryIsNotWritable($this->dir);
54
}
55
+
56
+ $this->dir .= '/';
57
58
59
protected function parse(array $message): void
0 commit comments