[Mono-osx] System.IO.Directory.Exists Question!

roger_xiong anson.tongbu at gmail.com
Sat Aug 20 07:37:14 EDT 2011


Hi,there

I used the code : System.IO.Directory.Exists("~/Desktop/testFolder") to
check if the folder exists. but I found it didn't work. It seems this method
does not support "~".

However, it works when you use "/Users/someone" instead of "~".

Anyone knows why?





--
View this message in context: http://mono.1490590.n4.nabble.com/System-IO-Directory-Exists-Question-tp3756936p3756936.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list