With the code :
$contents = collect(Storage::cloud()->listContents($dir, $recursive));
I can only return files/folders that are created from the Demo App. If I created/upload files/folders manually it wouldn't be return with the code mentioned.
Returned Value :
Contents Inside of Drive :
(anything that has a test in the name is created from the Demo App)
With the code :
$contents = collect(Storage::cloud()->listContents($dir, $recursive));
I can only return files/folders that are created from the Demo App. If I created/upload files/folders manually it wouldn't be return with the code mentioned.
Returned Value :
Contents Inside of Drive : (anything that has a test in the name is created from the Demo App)