Package vfsutil implements some I/O utility functions for webdav.FileSystem.
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 *PathError.
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.
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 *PathError.
ReadDir reads the contents of the directory associated with file and returns a slice of FileInfo values in directory order.
WriteFile writes data to a file named by name. If the file does not exist, WriteFile creates it with permissions perm; otherwise WriteFile truncates it before writing.