diff --git a/src/Illuminate/Filesystem/FilesystemAdapter.php b/src/Illuminate/Filesystem/FilesystemAdapter.php index 2dfe11f00ce7..ddfec188c09a 100644 --- a/src/Illuminate/Filesystem/FilesystemAdapter.php +++ b/src/Illuminate/Filesystem/FilesystemAdapter.php @@ -198,15 +198,19 @@ public function delete($paths) { $paths = is_array($paths) ? $paths : func_get_args(); + $success = true; + foreach ($paths as $path) { try { - $this->driver->delete($path); + if (! $this->driver->delete($path)) { + $success = false; + } } catch (FileNotFoundException $e) { - // + $success = false; } } - return true; + return $success; } /**