From 891968db5354ff15656579ef57b5452e04a8efac Mon Sep 17 00:00:00 2001 From: Marijn Kneppers Date: Sun, 19 May 2024 16:46:05 +0200 Subject: [PATCH] includes/std: Add create_directories to std (#250) --- includes/std/file.pat | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/std/file.pat b/includes/std/file.pat index 518c9d6..c8b16a1 100644 --- a/includes/std/file.pat +++ b/includes/std/file.pat @@ -109,4 +109,12 @@ namespace auto std::file { builtin::std::file::remove(handle); }; + /** + Create all directories for the provided path + @param path The path for which all directories should be created + */ + fn create_directories(str path) { + builtin::std::file::create_directories(path); + }; + }