Пример #1
0
 public JsonResult Rm(Dictionary<string, string> env, string[] args)
 {
     if (args.Length > 0)
     {
         var file = new BlobFile2(User.Identity.Name, env["path"] + args[0]);
         if (file.Exists())
         {
             return SuccessWrapper(String.Format("{0} file(s) deleted.", file.Delete()));
         }
         return Error("File Not Exist");
     }
     return Error("Usage: rm [file]");
 }