Parent Folders and Subfolders Explained

FOLDER HIERARCHY

Parent Folders and Subfolders Explained

See how parent folders organize subfolders and files, and learn what a folder total includes. A worked example traces Archive from its parent to its largest file.

Read the article

Overview

Read the folder path

A folder hierarchy shows which directory contains each item. Use the path to identify a folder’s parent, its immediate children, and the deeper descendants included in its total.

Dataset
Demo Storage, 1,000 MiB
Hierarchy
Five direct child folders
File placement
Six direct files per folder

Demo Storage is the parent directory at the top of this example. Media, Archive, Projects, Photos, and Documents are its five direct child folders; each of those folders contains six direct files.

A parent folder can contain files, folders, or both. A subfolder is one level below its parent, while a descendant can sit several levels deeper. Follow each name in the path from left to right to see where an item belongs.

Archive hierarchy and logical sizes
Path from Demo Storage Logical size
Demo Storage 1,000 MiB
Demo Storage / Archive 250 MiB
Demo Storage / Archive / backup-a.zip 200 MiB
Demo Storage / Archive / backup-b.zip 20 MiB
Demo Storage / Archive / exports.zip 12 MiB
Demo Storage / Archive / drafts.zip 8 MiB
Demo Storage / Archive / assets.zip 6 MiB
Demo Storage / Archive / notes.zip 4 MiB
Self-check: Is backup-a.zip a subfolder?

No. It is a file directly inside Archive. Archive is the subfolder of Demo Storage, and backup-a.zip is one of Archive’s six direct child files.

A folder’s logical total includes its descendant files. Archive’s six files add up to 250 MiB: 200 + 20 + 12 + 8 + 6 + 4. The 200 MiB backup-a.zip is already part of that 250 MiB.

Demo Storage totals 1,000 MiB across all five child folders. Its total already includes Archive and every file beneath it, so adding 250 MiB to the parent total would count Archive’s files twice. The same rule applies at each level of a deeper hierarchy.

These example values are logical sizes; allocated storage is a separate measurement. For more detail on interpreting a folder’s size, read Understanding Folder Sizes.

Self-check: What is the size of Archive’s other five files together?

They total 50 MiB: 20 + 12 + 8 + 6 + 4. Together with backup-a.zip at 200 MiB, they make Archive’s 250 MiB total.

Read a complete path to distinguish a folder from its contents. In Demo Storage / Archive / backup-a.zip, Demo Storage is the top-level parent, Archive is its child folder, and backup-a.zip is a file inside Archive.

When comparing folders, keep each level’s scope clear: Archive is 250 MiB, while Demo Storage is 1,000 MiB including Archive. Archive’s largest file accounts for 80% of Archive’s total and 20% of the full Demo Storage dataset. Each percentage uses a different denominator.

Folder size alone does not establish that its contents are safe to remove. Check the full path and open the files you recognize before deleting anything; removing a parent folder can remove its descendants too. To compare area and nesting in a storage visualization, see How to Read a Storage Treemap.

Self-check: Which total includes backup-a.zip?

Both Archive’s 250 MiB total and Demo Storage’s 1,000 MiB total include it, once at each scope. Those are nested totals, not separate amounts to add together.

Questions

Sort out folder relationships

Use these distinctions to read a path accurately and understand what a displayed total covers.

Can a parent contain files and folders?

Yes. A parent directory can hold direct files and child folders; its total includes files beneath those child folders as well.

Is every descendant a subfolder?

No. A subfolder is directly below its parent. A descendant may be a nested folder or a file several levels down.

Why is a parent total larger?

It covers the files in its own scope, including those inside its subfolders. Demo Storage’s 1,000 MiB therefore includes Archive’s 250 MiB.

Does folder size mean allocated space?

Not in this example. The listed values are logical sizes in MiB; allocated storage is a separate measurement and is not included in these totals.

Put it into practice

Trace Demo Storage

Follow Archive from Demo Storage into its six files, then compare the 250 MiB folder total with backup-a.zip at 200 MiB. Each descendant contributes once to the full dataset total.

Open folder explorer

Continue learning

Explore related guides

Build on this lesson with another perspective on folders and storage.