MCPcopy
hub / github.com/rclone/rclone / MkdirAll

Method MkdirAll

vfs/vfs.go:790–793  ·  view source on GitHub ↗

MkdirAll creates a new directory with the specified name and permission bits (before umask) and all of its parent directories up to the root.

(name string, perm os.FileMode)

Source from the content-addressed store, hash-verified

788// permission bits (before umask) and all of its parent directories up
789// to the root.
790func (vfs *VFS) MkdirAll(name string, perm os.FileMode) error {
791 _, err := vfs.mkdirAll(name, perm)
792 return err
793}
794
795// ReadDir reads the directory named by dirname and returns
796// a list of directory entries sorted by filename.

Callers 15

NewFsFunction · 0.45
connectMethod · 0.45
RemoveDirMethod · 0.45
AddChunkMethod · 0.45
PurgeMethod · 0.45
UpdateMethod · 0.45
MkdirMethod · 0.45
MoveMethod · 0.45
DirMoveMethod · 0.45
MoveMethod · 0.45
saveJSONCacheFunction · 0.45
saveSyncTokenMethod · 0.45

Calls 1

mkdirAllMethod · 0.95

Tested by 3

TestVFSMkdirAllFunction · 0.36
TestParseFunction · 0.36