Documentation
¶
Index ¶
- func CloseFile(file io.Closer) error
- func CopyFile(ctx context.Context, from string, to string) error
- func CreateFile(fileName string, isDir bool) error
- func DeleteFile(filename string) error
- func FileExists(filename string) (bool, error)
- func FileStats(filename string) (storage.Object, error)
- func GetPathType(path string) string
- func NewFileWriter(filename string, contentType string) (io.WriteCloser, error)
- func OpenFile(filename string) (io.ReadCloser, error)
- func PathJoinSafe(elem ...string) string
- func ReadFileBytes(filename string) ([]byte, error)
- func ReadLine(r *bufio.Reader) ([]byte, error)
- func WalkDir() func(ctx context.Context, URL string, handler storage.OnVisit, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
func DeleteFile ¶
func FileExists ¶
func GetPathType ¶
func NewFileWriter ¶
func NewFileWriter(filename string, contentType string) (io.WriteCloser, error)
func PathJoinSafe ¶
PathJoinSafe wrapper around filepath.Join to ensure that paths are correctly constructed if the path is a normal OS path, just use filepath.Join if the path is S3, trim any trailing slashes and construct it manually from the components so that double slashes (e.g. s3://) are preserved.
func ReadFileBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.