This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
youys
/
DocNet
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
14
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
FIX for clear non-existing folder crash
tags/0.7.2
Frans Bouma
10 years ago
parent
a8693e1e84
commit
53101643e8
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
src/Config.cs
+ 4
- 0
src/Config.cs
View File
@@ -116,6 +116,10 @@ namespace Docnet
Console.WriteLine("[WARNING] Destination is empty. No folder to clear.");
return;
}
if(!Directory.Exists(this.Destination))
{
return;
}
Directory.Delete(this.Destination, true);
Directory.CreateDirectory(this.Destination);
}
Write
Preview
Loading…
Cancel
Save