From f9a69eefe01d0c8f78dd191c9c540740ade94735 Mon Sep 17 00:00:00 2001 From: Propaganistas Date: Sun, 17 Apr 2022 10:20:05 +0200 Subject: [PATCH] Properly map virtual path when useDisplayPaths = false --- src/GoogleDriveAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GoogleDriveAdapter.php b/src/GoogleDriveAdapter.php index d37c67f..1080610 100644 --- a/src/GoogleDriveAdapter.php +++ b/src/GoogleDriveAdapter.php @@ -1156,7 +1156,7 @@ protected function normaliseObject(DriveFile $object, $dirname) $result['display_path'] = $this->toDisplayPath($result['virtual_path']); } else { $result['virtual_path'] = ($dirname ? ($dirname.'/') : '').$id; - $result['display_path'] = $this->toDisplayPath($result['virtual_path']); + $result['display_path'] = $result['virtual_path']; } if ($type === 'file') {