Skip to content

Commit

Permalink
Revert change debugging Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 8, 2024
1 parent c8d71ea commit 4230413
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Internal/FileTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public function run(Channel $channel, Cancellation $cancellation): mixed
if ("fopen" === $this->operation) {
$file = $driver->openFile(...$this->args);

$size = $driver->getStatus($file->getPath())["size"] ?? 0;
$size = $driver->getStatus($file->getPath())["size"]
?? throw new FilesystemException("Could not determine file size");

$id = $file->getId();
$cache->set((string) $id, $file);
Expand Down

0 comments on commit 4230413

Please sign in to comment.