Skip to content

Commit

Permalink
Set root folder for appDataFolder spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dragermrb committed Feb 2, 2022
1 parent a75d925 commit dbc7ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GoogleDriveAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbc7ada

Please sign in to comment.