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, error)
- func (l *Linux) BatchAttributes(bucket, prefix string, recursive bool) ([]*system.Attrs, error)
- func (l *Linux) Cat(bucket, path string) ([]byte, error)
- func (l *Linux) Copy(srcBucket, srcPath, dstBucket, dstPath string) error
- func (l *Linux) Delete(bucket, prefix string) error
- func (l *Linux) DiskUsage(bucket, prefix string, recursive bool) ([]system.DiskUsage, error)
- func (l *Linux) Download(bucket, prefix, dstFile string, forceChecksum bool, ctx system.RunContext) error
- func (l *Linux) Init(_ ...string) error
- func (l *Linux) IsDirectory(bucket, path string) (bool, error)
- func (l *Linux) IsObject(bucket, path string) (bool, error)
- func (l *Linux) List(bucket, prefix string, isRec bool) ([]*system.FileObject, error)
- func (l *Linux) Move(srcBucket, srcPath, dstBucket, dstPath string) error
- func (l *Linux) Scheme() string
- func (l *Linux) Upload(srcFile, bucket, object string, ctx system.RunContext) error
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) IsDirectory ¶
IsDirectory checks if is a directory
Click to show internal directories.
Click to hide internal directories.