我需要按名称过滤文件列表,但是我的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());
并显示正确的连接。