Documentation ¶
Overview ¶
Package vfsutil implements some I/O utility functions for webdav.FileSystem.
Index ¶
- func Create(ctx context.Context, fs webdav.FileSystem, name string) (webdav.File, error)
- func MkdirAll(ctx context.Context, fs webdav.FileSystem, path string, perm os.FileMode) error
- func Open(ctx context.Context, fs webdav.FileSystem, name string) (http.File, error)
- func ReadDir(ctx context.Context, fs webdav.FileSystem, name string) ([]os.FileInfo, error)
- func Stat(ctx context.Context, fs webdav.FileSystem, name string) (os.FileInfo, error)
- func WriteFile(ctx context.Context, fs webdav.FileSystem, name string, data []byte, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates the named file with mode 0644 (before umask), truncating it if it already exists. If successful, methods on the returned File can be used for I/O; the associated file descriptor has mode O_RDWR. If there is an error, it will be of type *os.PathError.
func MkdirAll ¶
MkdirAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error. The permission bits perm are used for all directories that MkdirAll creates. If path is already a directory, MkdirAll does nothing and returns nil.
func Open ¶
Open opens the named file for reading. If successful, methods on the returned file can be used for reading; the associated file descriptor has mode O_RDONLY. If there is an error, it will be of type *os.PathError.
func ReadDir ¶
ReadDir reads the contents of the directory associated with file and returns a slice of FileInfo values in directory order.
Types ¶
This section is empty.