I have a mapped drive to a Linux mount and need to search for files. One of the directories has a trailing space in the name and this produces the DirectoryNotFoundException error when using the DirectoryInfo.GetFiles method. It seems the method trims the trailing space by default. I am...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.