예제 #1
0
파일: FileManager.cs 프로젝트: Epitomy/CMS
        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);
        }
예제 #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);
        }
예제 #3
0
파일: FileManager.cs 프로젝트: Epitomy/CMS
 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;
 }
예제 #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);
 }