From af47c271886cd32dc5b9946a6828ea81ec3d7118 Mon Sep 17 00:00:00 2001 From: "Adiwit Co., Ltd" <50860673+adiwit-co-th@users.noreply.github.com> Date: Wed, 31 Aug 2022 23:13:10 +0700 Subject: [PATCH] Fixes createFolderRecursive() buildPath --- src/Drive/FolderService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Drive/FolderService.php b/src/Drive/FolderService.php index 135204b..61a7c4f 100644 --- a/src/Drive/FolderService.php +++ b/src/Drive/FolderService.php @@ -227,7 +227,7 @@ public function createFolderRecursive(?string $folder = null): ?array $parentFolderId = null; $createFolderResponse = null; foreach($pathParts as $path) { - $buildPath = $path; + $buildPath = sprintf('%s/%s', $buildPath, $path); $folderMeta = $this->requestFolderMetadata($buildPath); if($folderMeta !== null) {