From 18d5b11a2f0655b0ed7cbc967f331a39db9dbd97 Mon Sep 17 00:00:00 2001 From: lhlin Date: Sun, 10 May 2026 12:30:38 +0800 Subject: [PATCH] Add Notation to Mkdir in pkg/ddc/alluxio/operations/base.go. Signed-off-by: lhlin --- pkg/ddc/alluxio/operations/base.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/ddc/alluxio/operations/base.go b/pkg/ddc/alluxio/operations/base.go index 144a64c164c..4576684e4b5 100644 --- a/pkg/ddc/alluxio/operations/base.go +++ b/pkg/ddc/alluxio/operations/base.go @@ -468,6 +468,14 @@ func (a AlluxioFileUtils) LoadMetaData(alluxioPath string, sync bool) (err error return } +// Mkdir creates a directory in Alluxio at the specified path. +// It executes the `alluxio fs mkdir ` command inside the Alluxio pod's container. +// +// Parameters: +// - alluxioPath (string): The Alluxio path to create. +// +// Returns: +// - err (error): Non-nil if the mkdir command fails or if executing the command returns an error. func (a AlluxioFileUtils) Mkdir(alluxioPath string) (err error) { var ( command = []string{"alluxio", "fs", "mkdir", alluxioPath}