In Mono, how do I get the path to the Documents folder on a Mac (Snow Leopard)?

I'm writing a Mono application and would like to find the full path to the "Documents" folder - eg /Users/johnsmith/Documents/. What is the best way to achieve this?

+3
source share
1 answer

You can do it:

string doc_path = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), "Documents");

(Btw, for MonoTouch, it's simple Environment.GetFolderPath (Environment.SpecialFolder.Personal).)

+4
source

Source: https://habr.com/ru/post/1726145/


All Articles