MCPcopy
hub / github.com/rclone/rclone / Mkdir

Function Mkdir

fs/operations/operations.go:1053–1064  ·  view source on GitHub ↗

Mkdir makes a destination directory or container

(ctx context.Context, f fs.Fs, dir string)

Source from the content-addressed store, hash-verified

1051
1052// Mkdir makes a destination directory or container
1053func Mkdir(ctx context.Context, f fs.Fs, dir string) error {
1054 if SkipDestructive(ctx, fs.LogDirName(f, dir), "make directory") {
1055 return nil
1056 }
1057 fs.Infof(fs.LogDirName(f, dir), "Making directory")
1058 err := f.Mkdir(ctx, dir)
1059 if err != nil {
1060 err = fs.CountError(ctx, err)
1061 return err
1062 }
1063 return nil
1064}
1065
1066// MkdirMetadata makes a destination directory or container with metadata
1067//

Callers 15

TestRmdirWindowsFunction · 0.92
mkdir.goFile · 0.92
syncEmptyDirsMethod · 0.92
makeTempRemoteMethod · 0.92
ArchiveExtractFunction · 0.92
RunFunction · 0.92
copyDirMetadataMethod · 0.92
TestCopyAfterDeleteFunction · 0.92
TestSyncIgnoreErrorsFunction · 0.92

Calls 4

LogDirNameFunction · 0.92
InfofFunction · 0.92
SkipDestructiveFunction · 0.85
MkdirMethod · 0.65

Tested by 15

TestRmdirWindowsFunction · 0.74
makeTempRemoteMethod · 0.74
TestCopyAfterDeleteFunction · 0.74
TestSyncIgnoreErrorsFunction · 0.74
testServerSideMoveFunction · 0.74
TestMkdirFunction · 0.74
TestPurgeFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…