Example #1
0
 public string Shell(FilePathExistArgs ExistArgs)
 {
     var result = FileUtil.PathFileExist(ExistArgs.Path);
     return JsonConvert.SerializeObject(result);
 }
Example #2
0
 public static string MakeFilePathExistCommand(string path)
 {
     var args = new FilePathExistArgs()
     {
         Path            = path,
     };
     var argsSerialize = JsonConvert.SerializeObject(args);
     return PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "FilePathExist", argsSerialize);
 }
Example #3
0
 public PluginMethodReturnValueType Shell(FilePathExistArgs ExistArgs)
 {
     var result = FileUtil.PathFileExist(ExistArgs.Path);
     return new PluginMethodReturnValueType()
     {
         DataType    = PluginMethodReturnValueType.StringDataType,
         Data        = JsonConvert.SerializeObject(result),
     };
 }