全角スペースで終わるパスが認識されない。


string path="C:\\ぱすです ";//空白は全角
の時、

string di = Directory.GetDirectories(path);
が認識されない。(パスが見つからないエラーが発生する)
pathの最後の空白を無視しているようだ!


string di = Directory.GetDirectories(path + "\\");

ディレクトリの場合は最後にデリミタを付けて解決。