/// <summary>
 /// Renames the directory
 /// </summary>
 /// <param name="Name">Name of the new directory</param>
 public override void Rename(string Name)
 {
     if (InternalDirectory == null || string.IsNullOrEmpty(Name))
     {
         return;
     }
     InternalDirectory.MoveTo(Parent.FullName + "\\" + Name);
     InternalDirectory = new System.IO.DirectoryInfo(Parent.FullName + "\\" + Name);
 }
Beispiel #2
0
 /// <summary>
 /// Renames the directory
 /// </summary>
 /// <param name="name">Name of the new directory</param>
 public override IDirectory Rename(string name)
 {
     if (InternalDirectory is null || string.IsNullOrEmpty(name))
     {
         return(this);
     }
     InternalDirectory.MoveTo(Parent.FullName + "\\" + name);
     InternalDirectory = new System.IO.DirectoryInfo(Parent.FullName + "\\" + name);
     return(this);
 }
Beispiel #3
0
 public void Rename(string Name)
 {
     InternalDirectory.MoveTo(Parent.FullName + "\\" + Name);
     InternalDirectory = new DirectoryInfo(Parent.FullName + "\\" + Name);
 }
Beispiel #4
0
 public void MoveTo(IDirectory Directory)
 {
     InternalDirectory.MoveTo(Directory.FullName + "\\" + Name);
     InternalDirectory = new DirectoryInfo(Directory.FullName + "\\" + Name);
 }