2

I am building a .net Maui app which targets Mac Catalyst. I implemented a folder picker from @GeraldVersluis

Folder Picker .NET MAUI

When choosing the folder the following path is returned: pickedFolder = file:///Users/macminim1/Documents/Sorted%20Testing/

If I then use:

if (System.IO.Directory.Exists(pickedFolder))
{

}

The result is false. Obviously, the folder exists as I just chose it and I confirmed it's existence in the file system.

Thanks in advance!

Julian Dormon
  • 1,767
  • 4
  • 32
  • 58

1 Answers1

2

You could direct to this folder in the Terminal and use the 'pwd' command, this should return you the correct path. I think 'file:://' is not correct

peu77
  • 101
  • 3