Skip to content

Commit 57a9c26

Browse files
committed
Check if fileexists for size
1 parent 1fb131c commit 57a9c26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LogFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function logs(): LogReader
5454

5555
public function size(): int
5656
{
57-
return 0; //LogViewer::getFilesystem()->size($this->path);
57+
return LogViewer::getFilesystem()->exists($this->path) ? LogViewer::getFilesystem()->size($this->path) : 0;
5858
}
5959

6060
public function sizeInMB(): float

0 commit comments

Comments
 (0)