# Coding Challenge #145 - Disk Analyser

DevFeed: [Coding Challenge #145 - Disk Analyser](<https://devfeed.tech/articles/coding-challenge-145-disk-analyser-122224.md>)

Original publisher: [Read original article](<https://codingchallenges.substack.com/p/coding-challenge-145-disk-analyser>)

Author: John Crickett

Published: 2026-11-07T09:01:03Z

Content type: tutorial

Language: en

Sources: [Coding Challenges](<https://devfeed.tech/sources/coding-challenges.md>)

Topics: [Tool](<https://devfeed.tech/topics/tool.md>), [Application Development](<https://devfeed.tech/topics/application-development.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [app](<https://devfeed.tech/tags/app.md>), [backend](<https://devfeed.tech/tags/backend.md>), [build](<https://devfeed.tech/tags/build.md>), [cache](<https://devfeed.tech/tags/cache.md>), [challenge](<https://devfeed.tech/tags/challenge.md>), [cleanup](<https://devfeed.tech/tags/cleanup.md>), [coding](<https://devfeed.tech/tags/coding.md>), [directories](<https://devfeed.tech/tags/directories.md>), [directory](<https://devfeed.tech/tags/directory.md>), [disk-space](<https://devfeed.tech/tags/disk-space.md>), [space](<https://devfeed.tech/tags/space.md>), [tool](<https://devfeed.tech/tags/tool.md>)

## AI overview

The challenge is to build a disk analyzer that scans a chosen directory read-only, measures allocated disk usage separately from apparent file size, and visualizes the results as a navigable treemap. It emphasizes counting hard-linked storage once, not following symbolic links, handling unreadable directories with warnings, and keeping scans responsive with concurrent work and live progress. The tool should surface item sizes, ages, largest files, and likely cache or build-output candidates, while treating reclaimable space as an estimate and leaving cleanup under user control. Cleanup proceeds through staging and review, protects system paths and anything outside the scan root, rechecks staged paths before acting, and moves confirmed items to recoverable Trash. The challenge calls for reporting failures and distinguishing space moved to Trash from actual free-space changes, since Trash may not immediately free disk space.

## Source excerpt

This challenge is to build your own disk space analysis tool.