Example #1
0
        public virtual DirectoryResource RenameDirectory(Site site, string relativePath, string newName)
        {
            //DirectoryEntry @new = new DirectoryEntry(GetRootDir(site), new_RelativeVirtualPath);
            DirectoryEntry dir = new DirectoryEntry(GetRootDir(site), relativePath);

            dir.Rename(newName);
            return(dir);
        }
Example #2
0
        public virtual void RenameDirectory(Site site, string relativePath, string newName)
        {
            //DirectoryEntry @new = new DirectoryEntry(GetRootDir(site), new_RelativeVirtualPath);
            DirectoryEntry dir = new DirectoryEntry(GetRootDir(site), relativePath);

            dir.Rename(newName);
            FlushWebResourceCache(site, dir);
        }
Example #3
0
 public virtual DirectoryResource RenameDirectory(Site site, string relativePath, string newName)
 {
     //DirectoryEntry @new = new DirectoryEntry(GetRootDir(site), new_RelativeVirtualPath);
     DirectoryEntry dir = new DirectoryEntry(GetRootDir(site), relativePath);
     dir.Rename(newName);
     return dir;
 }
Example #4
0
 public virtual void RenameDirectory(Site site, string relativePath, string newName)
 {
     //DirectoryEntry @new = new DirectoryEntry(GetRootDir(site), new_RelativeVirtualPath);
     DirectoryEntry dir = new DirectoryEntry(GetRootDir(site), relativePath);
     dir.Rename(newName);
     FlushWebResourceCache(site, dir);
 }