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