File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ public function __construct(string $path)
38
38
$ this ->subFolder = str_replace ($ this ->name , '' , $ path );
39
39
$ this ->subFolder = rtrim ($ this ->subFolder , DIRECTORY_SEPARATOR );
40
40
41
- // if (str_starts_with($path, DIRECTORY_SEPARATOR)) {
42
- // $this->absolutePath = pathinfo($path)['dirname'];
43
- // $this->path = pathinfo($path)['basename'];
44
- // }
41
+ if (str_starts_with ($ path , DIRECTORY_SEPARATOR )) {
42
+ $ this ->absolutePath = pathinfo ($ path )['dirname ' ];
43
+ $ this ->path = pathinfo ($ path )['basename ' ];
44
+ }
45
45
46
46
$ this ->loadMetadata ();
47
47
}
@@ -62,8 +62,8 @@ public function logs(): LogReader
62
62
63
63
public function size (): int
64
64
{
65
- return LogViewer::getFilesystem ()->exists ($ this ->path )
66
- ? LogViewer::getFilesystem ()->size ($ this ->path )
65
+ return LogViewer::getFilesystem ($ this -> absolutePath )->exists ($ this ->path )
66
+ ? LogViewer::getFilesystem ($ this -> absolutePath )->size ($ this ->path )
67
67
: 0 ;
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments