Skip to content

Commit c8b95c9

Browse files
authored
Update FilesystemManager.php (#46668)
Do not change relative path to absolute if SFTP-Driver is created without root path - similiar to createFtpDiver()
1 parent a05ce6d commit c8b95c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Filesystem/FilesystemManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function createSftpDriver(array $config)
214214
{
215215
$provider = SftpConnectionProvider::fromArray($config);
216216

217-
$root = $config['root'] ?? '/';
217+
$root = $config['root'] ?? '';
218218

219219
$visibility = PortableVisibilityConverter::fromArray(
220220
$config['permissions'] ?? []

0 commit comments

Comments
 (0)