Versions in this module Expand all Collapse all v0 v0.1.1 Dec 14, 2022 v0.1.0 Jun 7, 2022 Changes in this version + const ErrReasonRateLimitExceeded + const ErrReasonSizeLimitExceeded + const FileTypeFolder + const FileTypeSDKPrefix + const FileTypeShortcut + var ErrNoExportableFormat = errors.New("no exportable format") + var ExportExtensions = map[string]string + var ExportTypes = map[string]string + var SkipTypes = map[string]struct + var ValidPathChars = regexp.MustCompile("[^a-zA-Z0-9 !@#$%^&()\\-_=+\\[\\]{}';\\.,`~]") + type File struct + File *drive.File + Files []*File + ID string + Name string + Parents []*File + ShortcutTarget *File + func NewTree(rootID string, list []*drive.File) (tree, orphaned *File) + func (fi *File) IsFolder() bool + func (fi *File) Walk(f func(path string, file *File) error) error + type Service struct + func NewService(configPath, user string, initialBackoff time.Duration, tries int) (*Service, error) + func (s *Service) Download(file *drive.File, path string) error + func (s *Service) DownloadFile(f *drive.File, path string) (downloaded bool, err error) + func (s *Service) DownloadTree(root *File, outpath string, downloaders int) error + func (s *Service) Export(file *drive.File, mimeType, path string) error + func (s *Service) List() ([]*drive.File, error) + func (s *Service) Root() (string, error)