/// <summary> /// Creates the directory /// </summary> public override void Create() { if (InternalDirectory == null) { return; } InternalDirectory.Create(); InternalDirectory.Refresh(); }
public void Delete() { if (!Exists) { return; } InternalDirectory.DeleteAll(); InternalDirectory.Refresh(); }
/// <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(); }
/// <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); }
public void Create() { InternalDirectory.Create(); InternalDirectory.Refresh(); }