Skip to content

Commit 3adb1eb

Browse files
committed
Fix the error message of folder not writable.
1 parent 97a2027 commit 3adb1eb

File tree

1 file changed

+1
-3
lines changed
  • lib/internal/Magento/Framework/Filesystem/Directory

1 file changed

+1
-3
lines changed

lib/internal/Magento/Framework/Filesystem/Directory/Write.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ public function __construct(
5353
protected function assertWritable($path)
5454
{
5555
if ($this->isWritable($path) === false) {
56-
$path = (!$this->driver->isFile($path))
57-
? $this->getAbsolutePath($this->path, $path)
58-
: $this->getAbsolutePath($path);
56+
$path = $this->getAbsolutePath($path);
5957
throw new FileSystemException(new \Magento\Framework\Phrase('The path "%1" is not writable.', [$path]));
6058
}
6159
}

0 commit comments

Comments
 (0)