drive

How to copy a folder with all the subfolders from colab to drive?

How to copy a folder with all the subfolders from colab to drive? Question: I need to copy a folder I created in the temporary space of Google Colab to Drive. This is the command %cp Thesis2023 /drive/MyDrive/Thesis2023 Thesis 2023 is the folder I need to copy to drive, but I get this error cp: …

Total answers: 1

List of file in a folder/ DRIVE API PyDRIVE

List of file in a folder/ DRIVE API PyDRIVE Question: I can’t change folder and view what’s inside. drive = GoogleDrive(gauth) file_list = drive.ListFile({‘q’: “‘root’ in parents and trashed=false”}).GetList() for file1 in file_list: print(“File %snn”,(file1)) I used the following code: file_list = drive.ListFile({‘q’: “‘/test1′ in parents and trashed=false”}).GetList() but it doesn’t work. There’s the documentation …

Total answers: 4