Results 1 to 40 of 81

Thread: Directory Tree - Generates a list of subdirectories.

Threaded View

  1. #11
    Fanatic Member
    Join Date
    Apr 2015
    Location
    Finland
    Posts
    692

    Re: Directory Tree - Generates a list of subdirectories.

    To enumerate directories.

    Use FindFirstFileEx with FindExInfoBasic and FindExSearchLimitToDirectories parameters, there is no other way to get decent performance without going to lower level API's.

    Also little performance increase might be achieved using FIND_FIRST_EX_LARGE_FETCH flag, but this seems to be bit contradictory.

    Code:
    hSearch = FindFirstFileEx(sPath & "*", FINDEX_INFO_LEVELS.FindExInfoBasic, WFD, FINDEX_SEARCH_OPS.FindExSearchLimitToDirectories, 0&, 0&)
    
    or 
    
    hSearch = FindFirstFileEx(sPath & "*", FINDEX_INFO_LEVELS.FindExInfoBasic, WFD, FINDEX_SEARCH_OPS.FindExSearchLimitToDirectories, 0&, FIND_FIRST_EX_LARGE_FETCH)
    Attached Images Attached Images  

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width