Index: core/units/helpers/file_helper.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/units/helpers/file_helper.php (revision 15788) +++ core/units/helpers/file_helper.php (revision ) @@ -274,7 +274,7 @@ $result = true; if (!file_exists($path) || !is_dir($path)) { - $parent_path = preg_replace('#(/|\\\)[^/\\\]+(/|\\\)?$#', '', $path); + $parent_path = preg_replace('#(/|\\\)[^/\\\]+(/|\\\)?$#', '', rtrim($path , '/\\')); $result = $this->CheckFolder($parent_path); if ($result) { \ No newline at end of file