[Mono-osx] System.IO.Directory.Exists Question!
brajkovic at coderinserepeat.com
Sat Aug 20 08:42:02 EDT 2011
On Aug 20, 2011, at 7:37 AM, roger_xiong wrote:
> 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?
Expansion of the "~" variable is done by the shell, not by programs.
More information about the Mono-osx