Skip to content

Simplify usage of Google Drive #36

@jfthuong

Description

@jfthuong

Is your feature request related to a problem? Please describe.
Fastai uses fastbook.setup_book as an equivalent to mount Google Drive. This is weird and not very specific. Moreover, it uses the name that is not the default in the code template of Google Colab to mount (/content/drive vs /content/gdrive).

Describe the solution you'd like
We could create a GoogleDrive class with different methods:

  • mount: mount Google Drive (with the code to copy, or any other simpler solution if that exists)
  • enter to do a "cd" and start working in Google Drive instead of /content which is the default)
  • copy to copy a file
  • move
  • delete
  • ls to list files (with potential specification of file type like image, text, csv, archive, zip, pkl, all)

Describe alternatives you've considered
An alternative is to juste create a mount_gdrive function that could return the Path of mounted Google Drive.

Additional context
N/A

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions