Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. slider1973

    Trailing Space in Directory Name Issue With DirectoryInfo.GetFiles

    Good point. The trailing space is caused by another process and really needs to be corrected there. I'm going to treat these as exceptions and not process them if there is no solution to the problem.
  2. slider1973

    Trailing Space in Directory Name Issue With DirectoryInfo.GetFiles

    The directory is on a Linux server. Linux allows trailing spaces in the directory name. I have a mapped drive on a Windows server to the Linux server. Windows recognizes the trailing space in the mapped drive directory name and C# recognizes the trailing space when listing the directories...
  3. slider1973

    Trailing Space in Directory Name Issue With DirectoryInfo.GetFiles

    The code is shown below. Please note that the error occurs on the line "ListDirectoriesAndFiles(dInfo.GetFileSystemInfos());". The directory string is "Z:\incoming\foldernamewithspace ". <code> using System; using System.IO; class DirectoryIssue { static void Main() { try...
  4. slider1973

    Trailing Space in Directory Name Issue With DirectoryInfo.GetFiles

    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...

Part and Inventory Search

Back
Top