Skip to content

Commit 11d3ba6

Browse files
committed
fix getRootFolder() bug in Windows
1 parent fd168d8 commit 11d3ba6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Lfm.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ public function getRootFolder($type = null)
128128
$folder = $this->config->get('lfm.shared_folder_name');
129129
}
130130

131-
return $this->ds() . $folder;
131+
// the slash is for url, dont replace it with directory seperator
132+
return '/' . $folder;
132133
}
133134

134135
public function getThumbFolderName()

0 commit comments

Comments
 (0)