diff --git a/src/services/Transcode.php b/src/services/Transcode.php index 0a2a69b..f8dc087 100644 --- a/src/services/Transcode.php +++ b/src/services/Transcode.php @@ -787,8 +787,9 @@ protected function getAssetPath(Asset|string $filePath): string if ($assetVolume) { // If it's local, get a path to the file - if ($assetVolume instanceof Local) { - $sourcePath = rtrim($assetVolume->path, DIRECTORY_SEPARATOR); + $fs = $assetVolume->getFs(); + if ($fs instanceof Local) { + $sourcePath = rtrim($fs->path, DIRECTORY_SEPARATOR); $sourcePath .= '' === $sourcePath ? '' : DIRECTORY_SEPARATOR; $folderPath = ''; try {