public function rmdir($path, $options) { stream_wrapper_restore('file'); $r = rmdir($path); stream_wrapper_unregister("file"); stream_wrapper_register("file", get_class($this)); return $r; }