public PluginMethodReturnValueType Shell(FileMoveArgs MoveArgs) { var result = FileUtil.FileMove(MoveArgs.SourcePath, MoveArgs.DestPath); return new PluginMethodReturnValueType() { DataType = PluginMethodReturnValueType.StringDataType, Data = JsonConvert.SerializeObject(result), }; }
public static string MakeFileMoveCommand(string sourcePath, string destPath) { var args = new FileMoveArgs() { SourcePath = sourcePath, DestPath = destPath, }; var argsSerialize = JsonConvert.SerializeObject(args); return PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "FileMove", argsSerialize); }
public string Shell(FileMoveArgs MoveArgs) { var result = FileUtil.FileMove(MoveArgs.SourcePath, MoveArgs.DestPath); return JsonConvert.SerializeObject(result); }