# Print drive contents : How to print the folder list of a drive with their subfolders 1 lvl deep

**URL:** https://resource.dopus.com/t/print-drive-contents-how-to-print-the-folder-list-of-a-drive-with-their-subfolders-1-lvl-deep/49762
**Category:** Help & Support
**Created:** [March 16, 2024, 8:54am UTC](https://resource.dopus.com/t/print-drive-contents-how-to-print-the-folder-list-of-a-drive-with-their-subfolders-1-lvl-deep/49762 "2024-03-16T08:54:58Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [March 16, 2024, 11:16pm UTC](https://resource.dopus.com/t/print-drive-contents-how-to-print-the-folder-list-of-a-drive-with-their-subfolders-1-lvl-deep/49762/2 "2024-03-16T23:16:34Z")

</div>

You'd need to define a filter to do that.

It's a little more complicated than most filtering, since there isn't something built-in for it, but this post has user-made column which you can install and then use in filters:

> [@PathDepth (Display depth in folder hierarchy)](https://resource.dopus.com/t/pathdepth-display-depth-in-folder-hierarchy/42681):
>
> This script column PathDepth displays the depth of files and folders in the folder hierarchy. Items on the root level (e.g. in C:\) have level 1. Useful in filters and for sorting and grouping in Flatview. function OnInit(initData) { i…

One complication is you'll need to specify the maximum depth relative to the root of the drive, not the starting folder. Turning on the Script \> Path Depth column (after installing it from the post above) is the easiest way to find out what that is. The filter would then use one more than that, if you want it to go one level deeper:

 ![image](https://resource.dopus.com/uploads/default/original/3X/9/4/9430305a8885972c65bf92bdce645495a8dbdc23.png)

When in the **Tools \> Print/Export Folder** dialog, you can define the filter there. You'll also want to turn on the **Flat View** option so it goes into subdirectories:

 ![image](https://resource.dopus.com/uploads/default/original/3X/4/e/4ea4598f06199002d3d0e46e21114d647df5706d.png)

---

_[View the full topic](https://resource.dopus.com/t/print-drive-contents-how-to-print-the-folder-list-of-a-drive-with-their-subfolders-1-lvl-deep/49762)._
