Skip to content

Commit d0dc1a2

Browse files
authored
docs: add comment for Mkdir (#5844)
Signed-off-by: lhlin <longhao_lin@outlook.com>
1 parent a9dde65 commit d0dc1a2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkg/ddc/alluxio/operations/base.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,14 @@ func (a AlluxioFileUtils) LoadMetaData(alluxioPath string, sync bool) (err error
468468
return
469469
}
470470

471+
// Mkdir creates a directory in Alluxio at the specified path.
472+
// It executes the `alluxio fs mkdir <alluxioPath>` command inside the Alluxio pod's container.
473+
//
474+
// Parameters:
475+
// - alluxioPath (string): The Alluxio path to create.
476+
//
477+
// Returns:
478+
// - err (error): Non-nil if the mkdir command fails or if executing the command returns an error.
471479
func (a AlluxioFileUtils) Mkdir(alluxioPath string) (err error) {
472480
var (
473481
command = []string{"alluxio", "fs", "mkdir", alluxioPath}

0 commit comments

Comments
 (0)