我如何将laravel连接到巨大的Google驱动器文件夹?

时间:2019-03-27 02:00:19

标签: php laravel google-drive-api

我需要按名称过滤文件列表,但是我的google驱动器文件夹太大,以至于需要永久搜索和列出(1/2小时后仍在加载)。

我将laravel与:  https://packagist.org/packages/private-it/flysystem-google-drive

我在laravel上运行,例如:

const conditions = {
    "isRock": {
      "paper": "You lose!",
      "scissors": "You win!",
      "rock": "Draw!"
    },
    "isPaper": {
      "rock": "You win!",
      "scissors": "You lose!",
      "paper": "Draw!"
    },
    "isScissors": {
      "rock": "You lose!",
      "paper": "You win!",
      "scissors": "Draw!"
    }
  };

  for (const state in conditions) {
      // check if this is the state
      if (this.state[state]) {
          this.setState({ result: condition[state][this.state.enemy] });
          break;
      }
  }

并继续加载, 我尝试过:

$disk = \Storage::disk('googleDrive');
dd($disk->directories());

并显示正确的连接。

0 个答案:

没有答案