/// <summary>
 /// Creates the directory
 /// </summary>
 public override void Create()
 {
     if (InternalDirectory == null)
     {
         return;
     }
     InternalDirectory.Create();
     InternalDirectory.Refresh();
 }
示例#2
0
 public void Delete()
 {
     if (!Exists)
     {
         return;
     }
     InternalDirectory.DeleteAll();
     InternalDirectory.Refresh();
 }
示例#3
0
 /// <summary>
 /// Creates the directory
 /// </summary>
 public override IDirectory Create()
 {
     if (InternalDirectory is null)
     {
         return(this);
     }
     InternalDirectory.Create();
     InternalDirectory.Refresh();
     return(this);
 }
 /// <summary>
 /// Deletes the directory
 /// </summary>
 public override void Delete()
 {
     if (!Exists)
     {
         return;
     }
     foreach (IFile File in EnumerateFiles())
     {
         File.Delete();
     }
     foreach (IDirectory Directory in EnumerateDirectories())
     {
         Directory.Delete();
     }
     InternalDirectory.Delete(true);
     InternalDirectory.Refresh();
 }
示例#5
0
 /// <summary>
 /// Deletes the directory
 /// </summary>
 public override IDirectory Delete()
 {
     if (!Exists)
     {
         return(this);
     }
     foreach (var TempFile in EnumerateFiles())
     {
         TempFile.Delete();
     }
     foreach (var TempDirectory in EnumerateDirectories())
     {
         TempDirectory.Delete();
     }
     InternalDirectory.Delete(true);
     InternalDirectory.Refresh();
     return(this);
 }
示例#6
0
 public void Create()
 {
     InternalDirectory.Create();
     InternalDirectory.Refresh();
 }