Documentation ¶
Index ¶
- type FileDirectory
- type FileDirectoryList
- type PCSApi
- func (p PCSApi) FileDownload(path string, size int64) (err error)
- func (p PCSApi) FileList(path string) (data FileDirectoryList, err error)
- func (p PCSApi) FilesDirectoriesMeta(path string) (data FileDirectory, err error)
- func (p PCSApi) Mkdir(path string) (err error)
- func (p PCSApi) QuotaInfo() (quota, used int64, err error)
- func (p PCSApi) Remove(paths ...string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDirectory ¶
type FileDirectory struct { FsID int64 Path string Filename string Ctime int64 MD5 string Size int64 Isdir bool Ifhassubdir bool }
FileDirectory 文件或目录的详细信息
func (FileDirectory) String ¶
func (f FileDirectory) String() string
type FileDirectoryList ¶
type FileDirectoryList []FileDirectory
FileDirectoryList FileDirectory 的 数组
func (*FileDirectoryList) Count ¶
func (f *FileDirectoryList) Count() (fileN, directoryN int64)
Count 获取文件总数和目录总数
func (*FileDirectoryList) TotalSize ¶
func (f *FileDirectoryList) TotalSize() int64
TotalSize 获取总文件大小
type PCSApi ¶
type PCSApi struct {
// contains filtered or unexported fields
}
PCSApi 百度 PCS API 详情
func (PCSApi) FileDownload ¶
FileDownload 下载网盘内文件
func (PCSApi) FileList ¶
func (p PCSApi) FileList(path string) (data FileDirectoryList, err error)
FileList 获取目录下的文件列表
func (PCSApi) FilesDirectoriesMeta ¶
func (p PCSApi) FilesDirectoriesMeta(path string) (data FileDirectory, err error)
FilesDirectoriesMeta 获取单个文件/目录的元信息
可用信息: 是否是目录isdir 是否含有子目录ifhassubdir 修改时间mtime 文件大小size
Click to show internal directories.
Click to hide internal directories.