Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using "Scan all old journal files," the error "System.IO.DirectoryNotFoundException:" is reported. #184

Closed
ckx000 opened this issue Feb 14, 2025 · 1 comment
Assignees
Labels
bug Something isn't working ready The fix or solution is ready to be verified

Comments

@ckx000
Copy link
Contributor

ckx000 commented Feb 14, 2025

What happened?

Because I have already changed the game's log directory to the correct storage location in the settings. The program is also functioning normally. However, when I use the "Scan all old journal files" feature, it still looks in the default fixed location, which is why it is reporting an error.

Could this part be improved? So that the program uses the directory previously set in "Watch journal folder:"

Version

2.0.2.130

Exception message

Could not find a part of the path 'C:\Users\ckx\Saved Games\Frontier Developments\Elite Dangerous'.

Exception stack

at System.IO.Enumeration.FileSystemEnumerator1.CreateDirectoryHandle(String path, Boolean ignoreNotFound) at System.IO.Enumeration.FileSystemEnumerator1.Init()
at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
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 SrvSurvey.FormPostProcess.postProcessJournals() in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\forms\FormPostProcess.cs:line 151
at SrvSurvey.FormPostProcess.<btnStart_Click>b__15_1() in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\forms\FormPostProcess.cs:line 98
at SrvSurvey.Program.crashGuard(Boolean beginInvoke, Action func) in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\Program.cs:line 129

Relevant log output

@ckx000 ckx000 added the bug Something isn't working label Feb 14, 2025
@njthomson
Copy link
Owner

Thank you @ckx000 for reporting this - yes, it should absolutely use the folder from the setting.

@njthomson njthomson self-assigned this Feb 14, 2025
@njthomson njthomson added the ready The fix or solution is ready to be verified label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready The fix or solution is ready to be verified
Projects
None yet
Development

No branches or pull requests

2 participants