Skip to content

Commit 71817f9

Browse files
committed
Debug
1 parent 32e2550 commit 71817f9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/framework/src/Support/Filesystem/MediaFile.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,17 @@ public function getMimeType(): string
130130

131131
public function getHash(): string
132132
{
133-
return md5_file($this->getAbsolutePath()) ?: throw new FileNotFoundException($this->path);
133+
$md5File = md5_file($this->getAbsolutePath());
134+
if ($md5File === false) {
135+
dd([
136+
'path' => $this->getAbsolutePath(),
137+
'exists' => file_exists($this->getAbsolutePath()),
138+
'is_file' => is_file($this->getAbsolutePath()),
139+
]);
140+
}
141+
142+
return $md5File;
143+
134144
}
135145

136146
/** @internal */

0 commit comments

Comments
 (0)