/// <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); }
/// <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); }
public void Rename(string Name) { InternalDirectory.MoveTo(Parent.FullName + "\\" + Name); InternalDirectory = new DirectoryInfo(Parent.FullName + "\\" + Name); }
public void MoveTo(IDirectory Directory) { InternalDirectory.MoveTo(Directory.FullName + "\\" + Name); InternalDirectory = new DirectoryInfo(Directory.FullName + "\\" + Name); }