예제 #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),
     };
 }
예제 #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);
 }
예제 #3
0
 public string Shell(FileMoveArgs MoveArgs)
 {
     var result = FileUtil.FileMove(MoveArgs.SourcePath, MoveArgs.DestPath);
     return JsonConvert.SerializeObject(result);
 }