summaryrefslogtreecommitdiff
path: root/src/Filesystem/CreateDirectory.php
diff options
context:
space:
mode:
authorFbenas <philbeansburton@gmail.com>2017-08-20 04:18:13 +0100
committerFbenas <philbeansburton@gmail.com>2017-08-20 04:18:13 +0100
commit0ed82a2c6ffd8e981d9dd388306379941ecb5720 (patch)
tree52c7d66149a93c7d4d8038d356bb0107bad09766 /src/Filesystem/CreateDirectory.php
parent048634fd8a65d37f21bcb3a34161f74be6aef95d (diff)
WIP rejigging stuff
Diffstat (limited to 'src/Filesystem/CreateDirectory.php')
-rw-r--r--src/Filesystem/CreateDirectory.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Filesystem/CreateDirectory.php b/src/Filesystem/CreateDirectory.php
new file mode 100644
index 0000000..0c45c6c
--- /dev/null
+++ b/src/Filesystem/CreateDirectory.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace App\Filesystem;
+
+use App\Filesystem\Create;
+
+class CreateDirectory extends Create
+{
+ protected $filename;
+ protected $thing = "directory";
+
+ public function __construct(string $filename)
+ {
+ parent::__construct($filename);
+
+ if (file_exists($filename)) {
+ throw new \Exception('Directory already exists at: ' . $filename);
+ }
+ }
+
+ public function excecute()
+ {
+ echo "execute";
+ }
+}