예제 #1
0
 public PluginMethodReturnValueType Shell(FileCopyArgs CopyArgs)
 {
     var result = FileUtil.FileCopy(CopyArgs.SourcePath, CopyArgs.DestPath, CopyArgs.FailIfExists);
     return new PluginMethodReturnValueType()
     {
         DataType    = PluginMethodReturnValueType.StringDataType,
         Data        = JsonConvert.SerializeObject(result),
     };
 }
예제 #2
0
 public static string MakeFileCopyCommand(string sourcePath, string destPath, bool failIfExists)
 {
     var args = new FileCopyArgs()
     {
         SourcePath      = sourcePath,
         DestPath        = destPath,
         FailIfExists    = failIfExists,
     };
     var argsSerialize = JsonConvert.SerializeObject(args);
     return PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "FileCopy", argsSerialize);
 }
예제 #3
0
 public string Shell(FileCopyArgs CopyArgs)
 {
     var result = FileUtil.FileCopy(CopyArgs.SourcePath, CopyArgs.DestPath, CopyArgs.FailIfExists);
     return JsonConvert.SerializeObject(result);
 }