Example #1
0
 public PluginMethodReturnValueType Shell(FileMoveArgs MoveArgs)
 {
     var result = FileUtil.FileMove(MoveArgs.SourcePath, MoveArgs.DestPath);
     return new PluginMethodReturnValueType()
     {
         DataType    = PluginMethodReturnValueType.StringDataType,
         Data        = JsonConvert.SerializeObject(result),
     };
 }
Example #2
0
 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);
 }
Example #3
0
 public string Shell(FileMoveArgs MoveArgs)
 {
     var result = FileUtil.FileMove(MoveArgs.SourcePath, MoveArgs.DestPath);
     return JsonConvert.SerializeObject(result);
 }