none
How To Get Directory Contents... RRS feed

  • Question

  • Hello,

     Is there any other way to get a Directory contents without actually walking the structure?

    Like an API that would return information such as number of sub-directories and the number

    of files.  Or are we stuck with using class DirectoryInfo and FileInfo?

     

     Thanks :)

    Sunday, February 25, 2018 7:53 AM

Answers

All replies

  • NtQueryDirectoryFile, but more complicated...
    • Proposed as answer by Fei HuModerator Tuesday, February 27, 2018 6:26 AM
    • Marked as answer by User3DX Wednesday, February 28, 2018 3:02 PM
    Sunday, February 25, 2018 8:43 AM
  • >  Or are we stuck with using class DirectoryInfo and FileInfo?

     


    Yea unlucky enough you're right. And that is even a problem because we cannot check if Microsoft has made in Windows some folders in the normal structure only available for them. 

    Success
    Cor

    Sunday, February 25, 2018 11:09 AM