Example #1
0
        public bool Delete(bool recursive = true)
        {
            bool deleted; string err;

            try {
                deleted = _fs.TryDeleteDir(this.Path, recursive, out err);
            }
            catch (Exception ex) { return(LogError("_fs.DeleteDir", ex)); }

            if (!deleted)
            {
                Warn_n("Failed to delete directory", this.Path + L.f + err);
            }

            return(deleted);
        }