Top level directories

Avatar
  • updated
  • Answered
Hello,

is it possible to get the stats for all top level directories (with all Sub directories included) and just for them?

Thnak you for your help
Thomas Dallmeier
Avatar
Michael
You can create such report by creating a custom table:

1. Open Options > Report > Tables.
2. Select the Access Statistics > Most Requested Directories table.
3. Click the "More" button and choose the "Copy Table..." command.
4. Change the table name to "Top-Level Directories".
5. Open the "Data" tab and click the "Custom..." button to the right of the "Main data" combo.
6. Enable the "Use modification rules" setting and enter the following rules:

/ $= /
/(.*?)/ ~= /\1/

7. Click OK in all the open dialogs.

Alternatively you can modify the Most Requested Directories table. However, in this case you should enable the "Block table updates" setting in the table properties, so if you install newer versions of the program, this table won't be overwritten with the default one.
Avatar
Gina Price
Hello,

I tried this and I have the correct results for the top level directories. Is there a way to pick up the next level down of sub directories?

http://www.myDirectory.com/firstLevel...

How would I create a table for "Second-Level Directories"?

Thank you,
Gina
Avatar
Michael
You can use the following modification rules:

/ $= /
/(.*?)/(.*?)/ ~= /\1/\2/
/(.*?)/ ~= /\1/

It will list second-level directories for files that are located in the second/third/etc. level directories and top-level directories and/or root folder for files located in top-level directories or root directory.
Avatar
Gina Price
Perfect, Michael. Thanks!