Skip to content

Commit 7c84df5

Browse files
committed
add comments in pull request
1 parent 65a267b commit 7c84df5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LfmPath.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ public function normalizeWorkingDir()
177177
?: $this->helper->getRootFolder();
178178

179179
if ($this->is_thumb) {
180+
// Prevent if working dir is "/" normalizeWorkingDir will add double "//" that breaks S3 functionality
180181
$path = rtrim($path, Lfm::DS) . Lfm::DS . $this->helper->getThumbFolderName();
181182
}
182183

183184
if ($this->getName()) {
185+
// Prevent if working dir is "/" normalizeWorkingDir will add double "//" that breaks S3 functionality
184186
$path = rtrim($path, Lfm::DS) . Lfm::DS . $this->getName();
185187
}
186188

0 commit comments

Comments
 (0)