public JsonResult Mkdir(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 Error("Directory \"" + args[0] + "\" already exists."); } else { file.CreateDirectory(); return SuccessWrapper(String.Format("Directory \"{0}\" Created", args[0])); } } return Error("Usage: mkdir [directory]"); }