Documentation ¶
Index ¶
- func GetRealPath(dir string) string
- func IsDirectoryOrObject(path string) bool
- func ListTempFiles(dir string, isRec bool) []string
- type FileAttrs
- type Linux
- func (l *Linux) Attributes(bucket, prefix string) *system.Attrs
- func (l *Linux) BatchAttributes(bucket, prefix string, recursive bool) []*system.Attrs
- func (l *Linux) Cat(bucket, path string) []byte
- func (l *Linux) Copy(srcBucket, srcPath, dstBucket, dstPath string)
- func (l *Linux) Delete(bucket, prefix string)
- func (l *Linux) DiskUsage(bucket, prefix string, recursive bool) []system.DiskUsage
- func (l *Linux) Download(bucket, prefix, dstFile string, forceChecksum bool, ctx system.RunContext)
- func (l *Linux) IsDirectory(bucket, path string) bool
- func (l *Linux) IsObject(bucket, path string) bool
- func (l *Linux) List(bucket, prefix string, isRec bool) []*system.FileObject
- func (l *Linux) Move(srcBucket, srcPath, dstBucket, dstPath string)
- func (l *Linux) Scheme() string
- func (l *Linux) Upload(srcFile, bucket, object string, ctx system.RunContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDirectoryOrObject ¶
IsDirectoryOrObject checks if is a directory or an object
func ListTempFiles ¶
ListTempFiles lists objects under a prefix
Types ¶
type FileAttrs ¶
type FileAttrs struct { FullPath string RelativePath string Name string Size int64 CRC32C uint32 ModTime time.Time }
FileAttrs holds attributes of a file
type Linux ¶
type Linux struct { }
func (*Linux) BatchAttributes ¶
func (*Linux) Download ¶
func (l *Linux) Download( bucket, prefix, dstFile string, forceChecksum bool, ctx system.RunContext, )
func (*Linux) IsDirectory ¶
IsDirectory checks if is a directory
func (*Linux) List ¶
func (l *Linux) List(bucket, prefix string, isRec bool) []*system.FileObject
ListObjects lists objects under a prefix
Click to show internal directories.
Click to hide internal directories.