diff --git a/src/GoogleDriveAdapter.php b/src/GoogleDriveAdapter.php index 7baa50c..87093f3 100644 --- a/src/GoogleDriveAdapter.php +++ b/src/GoogleDriveAdapter.php @@ -240,6 +240,7 @@ public function __construct(Google_Service_Drive $service, $root = null, $option public function write($path, $contents, Config $config) { $updating = null; + if($this->useDisplayPaths) { try { $virtual_path = $this->toVirtualPath($path, true, false); @@ -268,7 +269,10 @@ function ($p) { } $virtual_path = $virtual_path[0]; } + } else { + $virtual_path = $path; } + return $this->upload($virtual_path, $contents, $config, $updating); }