Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 348d3d6

Browse files
committed
rmdir was broken due to wrapper
1 parent 19de341 commit 348d3d6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

core/src/core/classes/class.AJXP_MetaStreamWrapper.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,11 @@ public function rename($path_from, $path_to)
267267
*/
268268
public function rmdir($path, $options)
269269
{
270-
return rmdir($this->translateScheme($path), $options);
270+
if(is_resource($options)){
271+
return rmdir(AJXP_MetaStreamWrapper::translateScheme($path), $options);
272+
}else{
273+
return rmdir(AJXP_MetaStreamWrapper::translateScheme($path));
274+
}
271275
}
272276

273277
/**

core/src/core/classes/class.AJXP_SchemeTranslatorWrapper.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ public function rename($path_from, $path_to)
165165
*/
166166
public function rmdir($path, $options)
167167
{
168-
return rmdir(AJXP_MetaStreamWrapper::translateScheme($path), $options);
168+
if(is_resource($options)){
169+
return rmdir(AJXP_MetaStreamWrapper::translateScheme($path), $options);
170+
}else{
171+
return rmdir(AJXP_MetaStreamWrapper::translateScheme($path));
172+
}
169173
}
170174

171175
/**

0 commit comments

Comments
 (0)