Go: add API mode check in file system command (#16022)

### What problem does this PR solve?

As title.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-06-15 16:37:47 +08:00
committed by GitHub
parent e3cb86d540
commit 417f805bd9
4 changed files with 694 additions and 665 deletions

View File

@@ -328,7 +328,7 @@ func (c *CLI) ExecuteUserCommand(cmd *Command) (ResponseIf, error) {
case "save_config_command":
return c.SaveServerConfig(cmd)
case "file_system_command":
return c.executeFilesystem(cmd)
return c.ExecuteFilesystemCommand(cmd)
default:
return nil, fmt.Errorf("command '%s' would be executed with API", cmd.Type)
}