|
@@ -1648,8 +1648,15 @@ namespace Venus_MainPages.ViewModels
|
|
|
}
|
|
|
private IEnumerable<string> GetFilesNames(string path)
|
|
|
{
|
|
|
- return Directory.GetFiles(path, "*.rcp")?
|
|
|
- .Select(Path.GetFileNameWithoutExtension);
|
|
|
+ if (Directory.Exists(path))
|
|
|
+ {
|
|
|
+ return Directory.GetFiles(path, "*.rcp")?
|
|
|
+ .Select(Path.GetFileNameWithoutExtension);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return new List<string>();
|
|
|
+ }
|
|
|
}
|
|
|
void timer_Tick(object sender, EventArgs e)
|
|
|
{
|