示例#1
0
        JsonResult IDriver.MakeDir(string target, string name)
        {
            WebDavRoot lroot = this.GetRoot(target);

            target = this.GetCorectTarget(target);
            target = this.DecodeTarget(target);
            client.CreateDirectory(target + name);
            DirInfo dirInfo = client.GetInfo(target + name);
            DirInfo parent  = this.GetParent(dirInfo);

            return(Json(new AddResponse(dirInfo, parent, lroot)));
        }