aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/FileUtils.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-11-24 01:26:30 +0100
committerVirtualTam <virtualtam@flibidi.net>2015-11-24 01:26:30 +0100
commit0def004963c62ff1edfce16272a87ba9f0c87e16 (patch)
treef743e785edf708454ab53efa13f38e35f10447e6 /application/FileUtils.php
parentc580024cfbe5f0d290b09157b9665d1b4131d7f4 (diff)
parent2e28269baed195d58bbe169841eed176b171db76 (diff)
downloadShaarli-0def004963c62ff1edfce16272a87ba9f0c87e16.tar.gz
Shaarli-0def004963c62ff1edfce16272a87ba9f0c87e16.tar.zst
Shaarli-0def004963c62ff1edfce16272a87ba9f0c87e16.zip
Merge pull request #375 from virtualtam/utils/permissions
tools: check file/directory permissions for Shaarli resources
Diffstat (limited to 'application/FileUtils.php')
-rw-r--r--application/FileUtils.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/application/FileUtils.php b/application/FileUtils.php
new file mode 100644
index 00000000..6a12ef0e
--- /dev/null
+++ b/application/FileUtils.php
@@ -0,0 +1,19 @@
1<?php
2/**
3 * Exception class thrown when a filesystem access failure happens
4 */
5class IOException extends Exception
6{
7 private $path;
8
9 /**
10 * Construct a new IOException
11 *
12 * @param string $path path to the ressource that cannot be accessed
13 */
14 public function __construct($path)
15 {
16 $this->path = $path;
17 $this->message = 'Error accessing '.$this->path;
18 }
19}