From 8b7f6bab4e6471cfa07550e7c96088762616a9fd Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 4 Sep 2023 20:32:28 +0200 Subject: [PATCH] Core - add File class incorporating a file_put_contents() alternative which handles access rights before writing the file. There may be some other file type utilities or patterns that are practical to reuse in which case we can add those here. --- .../mvc/app/library/OPNsense/Core/File.php | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/opnsense/mvc/app/library/OPNsense/Core/File.php diff --git a/src/opnsense/mvc/app/library/OPNsense/Core/File.php b/src/opnsense/mvc/app/library/OPNsense/Core/File.php new file mode 100644 index 000000000..1ccca5694 --- /dev/null +++ b/src/opnsense/mvc/app/library/OPNsense/Core/File.php @@ -0,0 +1,47 @@ +