Versions in this module Expand all Collapse all v1 v1.0.0 Feb 9, 2025 Changes in this version + const CHUNK_SIZE + const MAX_NUMBER_FILES + var ErrFileURLRetrieval = errors.New("failed to retrieve file URL") + func CachedDownload(urlStr, outputPath, hash string, quiet bool, postprocess func(string) error, ...) (string, error) + func Download(urlStr, output string, opts DownloadOptions) (string, error) + func DownloadFolder(urlStr, id, output string, opts FolderOptions) ([]string, error) + func ExtractAll(archivePath, to string) ([]string, error) + func IsGoogleDriveUrl(urlStr string) bool + func MD5Sum(filename string) (string, error) + func ParseUrl(urlStr string, warn bool) (fileId string, isDownloadLink bool, err error) + type DownloadOptions struct + Format string + Fuzzy bool + Proxy string + Quiet bool + Resume bool + Speed int64 + UseCookies bool + UserAgent string + Verify bool + type FileInfo struct + DownloadURL string + ID string + IsFolder bool + Path string + func ListFolder(urlStr, id string, opts FolderOptions) ([]FileInfo, error) + type FileToDownload struct + ID string + LocalPath string + Path string + type FolderOptions struct + RemainingOk bool + type GoogleDriveFile struct + Children []*GoogleDriveFile + ID string + Name string + Type string + func (f *GoogleDriveFile) IsFolder() bool + type ThrottledWriter struct + func NewThrottledWriter(w io.Writer, speed int64) *ThrottledWriter + func (tw *ThrottledWriter) Write(p []byte) (n int, err error)