Skip to content

Commit

Permalink
Merge pull request #220 from JohnAFernandez/Don't-forget-spaces-
Browse files Browse the repository at this point in the history
Use Local instead of Absolute path
  • Loading branch information
JohnAFernandez authored Aug 7, 2024
2 parents eae4a4d + 5aa9400 commit 3263ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Knossos.NET/ViewModels/GlobalSettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -787,11 +787,11 @@ internal async void BrowseFolderCommand()
{

// Test if we can write to the new library directory
using (StreamWriter writer = new StreamWriter(result[0].Path.AbsolutePath.ToString() + Path.DirectorySeparatorChar + "test.txt"))
using (StreamWriter writer = new StreamWriter(result[0].Path.LocalPath.ToString() + Path.DirectorySeparatorChar + "test.txt"))
{
writer.WriteLine("test");
}
File.Delete(Path.Combine(result[0].Path.AbsolutePath.ToString() + Path.DirectorySeparatorChar + "test.txt"));
File.Delete(Path.Combine(result[0].Path.LocalPath.ToString() + Path.DirectorySeparatorChar + "test.txt"));

Knossos.globalSettings.basePath = result[0].Path.LocalPath.ToString();
Knossos.globalSettings.Save();
Expand Down

0 comments on commit 3263ac1

Please sign in to comment.