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); }
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); }
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; }
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); }