We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8db87d commit 54ba444Copy full SHA for 54ba444
Finder.php
@@ -732,12 +732,20 @@ private function searchInDirectory($dir)
732
/**
733
* Normalizes given directory names by removing trailing slashes.
734
*
735
+ * Excluding: (s)ftp:// wrapper
736
+ *
737
* @param string $dir
738
739
* @return string
740
*/
741
private function normalizeDir($dir)
742
{
- return rtrim($dir, '/'.\DIRECTORY_SEPARATOR);
743
+ $dir = rtrim($dir, '/'.\DIRECTORY_SEPARATOR);
744
+
745
+ if (preg_match('#^s?ftp://#', $dir)) {
746
+ $dir .= '/';
747
+ }
748
749
+ return $dir;
750
}
751
0 commit comments