]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/FileUtils.php
install: check file/directory permissions for Shaarli resources
[github/shaarli/Shaarli.git] / application / FileUtils.php
diff --git a/application/FileUtils.php b/application/FileUtils.php
new file mode 100644 (file)
index 0000000..6a12ef0
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Exception class thrown when a filesystem access failure happens
+ */
+class IOException extends Exception
+{
+    private $path;
+
+    /**
+     * Construct a new IOException
+     *
+     * @param string $path path to the ressource that cannot be accessed
+     */
+    public function __construct($path)
+    {
+        $this->path = $path;
+        $this->message = 'Error accessing '.$this->path;
+    }
+}