diff --git a/src/GoogleDriveAdapter.php b/src/GoogleDriveAdapter.php index e9b90f0..1778054 100644 --- a/src/GoogleDriveAdapter.php +++ b/src/GoogleDriveAdapter.php @@ -241,12 +241,12 @@ public function __construct($service, $root = null, $options = []) } else { if (!$this->useDisplayPaths || $root === null) { if ($root === null) { - $root = 'root'; + $root = $this->spaces === 'appDataFolder' ? 'appDataFolder' : 'root'; } $this->root = $root; $this->setPathPrefix(''); } else { - $this->root = 'root'; + $this->root = $this->spaces === 'appDataFolder' ? 'appDataFolder' : 'root'; $this->setPathPrefix(''); // get real root id