コード例 #1
0
 /// <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);
 }
コード例 #2
0
ファイル: LocalDirectory.cs プロジェクト: JaCraig/FileCurator
 /// <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);
 }
コード例 #3
0
 public void Rename(string Name)
 {
     InternalDirectory.MoveTo(Parent.FullName + "\\" + Name);
     InternalDirectory = new DirectoryInfo(Parent.FullName + "\\" + Name);
 }
コード例 #4
0
 public void MoveTo(IDirectory Directory)
 {
     InternalDirectory.MoveTo(Directory.FullName + "\\" + Name);
     InternalDirectory = new DirectoryInfo(Directory.FullName + "\\" + Name);
 }