From c18c40aaa5c555d4d837a9163cc209f47e284b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Wed, 19 Jul 2017 14:07:29 +0200 Subject: [PATCH] [ticket/15253] Add create dir method PHPBB3-15253 --- phpBB/phpbb/storage/adapter/adapter_interface.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/phpBB/phpbb/storage/adapter/adapter_interface.php b/phpBB/phpbb/storage/adapter/adapter_interface.php index 55b2687344..1b0ca04438 100644 --- a/phpBB/phpbb/storage/adapter/adapter_interface.php +++ b/phpBB/phpbb/storage/adapter/adapter_interface.php @@ -77,4 +77,13 @@ interface adapter_interface * When the file cannot be copied */ public function copy($path_orig, $path_dest); + + /** + * Creates a directory recursively. + * + * @param string $path The directory path + * + * @throws \phpbb\storage\exception\exception On any directory creation failure + */ + public function create_dir($path); }