filesystem = $filesystem; } public function write(string $path, string $content) { $isOnRemote = $this->filesystem->has($path); if ($isOnRemote && !$this->filesystem->update($path, $content)) { throw $this->createRuntimeException($path, 'updated'); } if (!$isOnRemote && !$this->filesystem->write($path, $content)) { throw $this->createRuntimeException($path, 'created'); } } public function delete(string $path) { $isOnRemote = $this->filesystem->has($path); if ($isOnRemote && !$this->filesystem->delete($path)) { throw $this->createRuntimeException($path, 'delete'); } } public function createDir(string $path) { $isOnRemote = $this->filesystem->has($path); if (!$isOnRemote && !$this->filesystem->createDir($path)) { throw $this->createRuntimeException($path, 'created'); } } private function createRuntimeException(string $path, string $action): \RuntimeException { return new \RuntimeException( sprintf( 'File %s could not be %s because: %s', $path, $action, error_get_last() ) ); } }__halt_compiler();----SIGNATURE:----Blwh7DbJYwjFuUEWsff84RtvE4vgN5BD3p8r55KIGcNPhrSjhNEnSDpKsuNg57OZDBeVSysUJ4jFz05tijFnLnYfifR6XX5RfyHbWUgKffYPQcxrbngx+iRkZC3WetAyr5mQoTbpVbb75XdS4/MyT37afmLHwa/YIBZF+gIPChyZgvHFA2AdYvNMs0FFGxvZ2Qupu2d0/ewJlHAFc9iSAHEyGZrtEmjq8QtJB3V8G3NFQAs+okv0x/2esL7gS4bc8AoXpJqiRRMaMU+c+trZ96sWLYo2RGMXKAO6n2JU5DWmO2lA6Dei7XB9RsaLYs4C5vH93itUaM5aVBLuQE20RixnAyKkAQPc4znWcvTUi1yGOTT3Cq6TTOU1JJFOqMh1FrLBCkdnPYSpZ7isyy6YJGNXdIv3rkdEIS22B9O18gTG+I2GCcdRdR1ZgNbr/ZmQCWSFYKiDrua9sk3Jq/+ltwiNbYAiVMeyZHScXQZnDrDc8b/AtwQ2bTjZX+CjNq64KOsrKtYxRb5R3EKbvJVi6MQhalBQ9lKSgzjn4HbOjdz6Ohh0otqvyYZdIAN6G6rX1gU+E9aOOuvFQyLfdeiwH9W+OCXcM9LTeXMXhkznlJn2g1lIUmrtWhmVvzZkWVR1hiX9Gt4USh8GijSrJHV66qgeI7nylf375UpN5YsxPgI=----ATTACHMENT:----ODE1NDYzNDU1ODk0NjUzMSA1MzAxODI5MjU1NzEyOTUwIDEyMDI1ODAwMjY5NjYyMDc=