What tool can I use to count the number of "nested folders" ?


  1. Posts : 127
    10
       #1

    What tool can I use to count the number of "nested folders" ?


    Is there a simple tool that tells me the number of nested folders (deep) I have in a folder?

    My cloud sync copy is failing because I might have more than 20 nested folders deep. I want a tool that can count the subfolders in a main folder.
    Last edited by Bansaw; 20 Jun 2022 at 10:49.
      My Computer


  2. Posts : 2,800
    Windows 7 Pro
       #2

    Hi,

    TreeSize has a "Dir Level" Field that can be added to main view.

    Run a scan
    Select the Details tab
    Right click on any column name such as Name or Size to be presented with a list of available fields
    Select the "Dir Level" option which will be added to the end (you can click/drag it to any location you wish)
      My Computers


  3. Posts : 127
    10
    Thread Starter
       #3

    MaloK said:
    Hi,

    TreeSize has a "Dir Level" Field that can be added to main view.

    Run a scan
    Select the Details tab
    Right click on any column name such as Name or Size to be presented with a list of available fields
    Select the "Dir Level" option which will be added to the end (you can click/drag it to any location you wish)
    Thanks, I installed a Treesize Free, and there was no details tab but I did add the "Dir Level (Relative)" column.
    However, its giving me the Dir level of the folder I currently click on. As I navigate down the tree it changes to the level where I am at.
    I want to be able to right click a folder and have it tell me how many subfolders are in that folder.
      My Computer


  4. Posts : 30,784
    Windows 10 (Pro and Insider Pro)
       #4

    Bansaw said:
    Is there a simple tool that tells me the number of nested folders I have in a folder?

    My cloud sync copy is failing because I might have more than 20 nested folders deep. I want a tool that can count the subfolders in a main folder.
    Right Click on folder and select Properties. It'll give you the number of nested folders in there
    What tool can I use to count the number of "nested folders"  ?-image.png
      My Computers


  5. Posts : 127
    10
    Thread Starter
       #5

    AndreTen said:
    Right Click on folder and select Properties. It'll give you the number of nested folders in there
    Thanks but that give me the number of subfolders in that folder, but it does not give me how deep (how many levels) the nested folders are.
      My Computer


  6. Posts : 7,091
    22H2 64 Bit Pro
       #6

    XinorbisPro Portable (free)

    What tool can I use to count the number of "nested folders"  ?-gui.png

    What tool can I use to count the number of "nested folders"  ?-tree-report.png
      My Computer


  7. Posts : 127
    10
    Thread Starter
       #7

    Callender said:
    XinorbisPro Portable (free)
    Thats loks great thanks. However, I am looking for a tool to tell me "how deep" the folders go.
    This is because I can have up to 20 nested folder depth on Google cloud sync. And somewhere I am thinking I might have 20+ folders depth.
    So, its not folder count I'm after, its # folder depth.
      My Computer


  8. Posts : 1,621
    Windows 10 Home
       #8

    There is a related concern: the number of characters contained in the MFT [used to be FAT in earlier Windows] within each and every file. I do not remember Windows 10 limitations, however, I think I remember 256 characters being the maximum within the full path of each and every file in existence, no matter what folder, nested or birds-have-flown.
      My Computer


  9. Posts : 1,682
    X
       #9

    The answer to this question (and many others) can be had by using the Linux shell.
    Linux co-runs on Windows ... so I use Ubuntu. It's superb.

    The Linux shell (bash) can answer your question:

    x=$(find . -type d -print | sed -e "s/[^/]//g" | sort -u | tail -1); echo ${#x}
      My Computer


  10. Posts : 30,784
    Windows 10 (Pro and Insider Pro)
       #10

    Bansaw said:
    Thanks but that give me the number of subfolders in that folder, but it does not give me how deep (how many levels) the nested folders are.
    You already got some good answers. In post #2 Treesize. Click on expand all and you get all the info
    What tool can I use to count the number of "nested folders"  ?-image.png
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:05.
Find Us




Windows 10 Forums