• Jeff is correct.

    If there are no files in the main folders (except subfolders), you will get the 0 as a result.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP