Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/Illuminate/Filesystem/FilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function get($path)
try {
return $this->driver->read($path);
} catch (UnableToReadFile $e) {
//
report($e);
}
}

Expand Down Expand Up @@ -330,6 +330,7 @@ public function put($path, $contents, $options = [])
? $this->driver->writeStream($path, $contents, $options)
: $this->driver->write($path, $contents, $options);
} catch (UnableToWriteFile $e) {
report($e)
return false;
}

Expand Down Expand Up @@ -405,6 +406,7 @@ public function setVisibility($path, $visibility)
try {
$this->driver->setVisibility($path, $this->parseVisibility($visibility));
} catch (UnableToSetVisibility $e) {
report($e)
return false;
}

Expand Down Expand Up @@ -461,6 +463,7 @@ public function delete($paths)
try {
$this->driver->delete($path);
} catch (UnableToDeleteFile $e) {
report($e)
$success = false;
}
}
Expand All @@ -480,6 +483,7 @@ public function copy($from, $to)
try {
$this->driver->copy($from, $to);
} catch (UnableToCopyFile $e) {
report($e)
return false;
}

Expand All @@ -498,6 +502,7 @@ public function move($from, $to)
try {
$this->driver->move($from, $to);
} catch (UnableToMoveFile $e) {
report($e)
return false;
}

Expand Down Expand Up @@ -545,7 +550,7 @@ public function readStream($path)
try {
return $this->driver->readStream($path);
} catch (UnableToReadFile $e) {
//
report($e)
}
}

Expand All @@ -557,6 +562,7 @@ public function writeStream($path, $resource, array $options = [])
try {
$this->driver->writeStream($path, $resource, $options);
} catch (UnableToWriteFile $e) {
report($e)
return false;
}

Expand Down Expand Up @@ -753,6 +759,7 @@ public function makeDirectory($path)
try {
$this->driver->createDirectory($path);
} catch (UnableToCreateDirectory $e) {
report($e)
return false;
}

Expand All @@ -770,6 +777,7 @@ public function deleteDirectory($directory)
try {
$this->driver->deleteDirectory($directory);
} catch (UnableToDeleteDirectory $e) {
report($e)
return false;
}

Expand Down