Skip to content

[bug] System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\BetterGI\User\KeyMouseScript'.  #2316

@TeaDrink666

Description

@TeaDrink666

进行路径追踪时发生错误

  • 系统环境 / System Environment:

win11 24h2

  • BetterGI版本号 / BetterGI Version:
    0.51,0,50都会出现

  • 问题描述 / Description of the issue:

进行路径追踪时发生错误

  • 复现步骤 / Reproduction steps:
Image 更好的原神 v0.50.0.0 2025/10/9 21:38:05 Windows 10.0.26100.2 ``` System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\BetterGI\User\KeyMouseScript'. at System.IO.Enumeration.FileSystemEnumerator`1.Init() at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles(String directory, String expression, EnumerationOptions options) at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at System.IO.Directory.GetFiles(String path, String searchPattern, EnumerationOptions enumerationOptions) at BetterGenshinImpact.ViewModel.Pages.ScriptControlViewModel.LoadAllKmScripts() in D:\a\better-genshin-impact\better-genshin-impact\BetterGenshinImpact\ViewModel\Pages\ScriptControlViewModel.cs:line 1561 at BetterGenshinImpact.ViewModel.Pages.ScriptControlViewModel.OnAddKmScript() in D:\a\better-genshin-impact\better-genshin-impact\BetterGenshinImpact\ViewModel\Pages\ScriptControlViewModel.cs:line 846 at CommunityToolkit.Mvvm.Input.RelayCommand.Execute(Object parameter) at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGSomething isn't working已完成已完成未发布

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions