Announcement

Collapse
No announcement yet.

File.Find and folders

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File.Find and folders

    When using File.Find with wildcards, where IncludeFolders is true, is there any way to tell which entries are files and which entries are folders? It does not appear to be possible, but was just wondering if anyone knew of a trick.

    I am using the latest SUF 9.5.

    Thanks.

  • #2
    Check the "Directory" field of the File.GetFileAttributes() result.

    Ulrich

    Comment


    • #3
      Right, I was hoping that there was a trick using just the File.Find. Suggestion: in the array returned by File.Find have the last character be \ (backslash) if it is a directory. Thanks.

      Comment

      Working...
      X