Search⌘ K
AI Features

Exercise: Restoring Files and Directories

Explore how to extend a Go CLI tool to restore files and directories from gzip archives. Learn to recreate original directory structures, uncompress files using gzip.Reader, and implement a restore flag for user control. This exercise helps deepen your understanding of file system operations and Go's compression libraries.

Challenge

Exercise: Restoring files and directories

In this exercise, your challenge is to expand the walk tool you developed previously to restore files previously archived with the tool.

Problem statement

The current version of the walk tool has an option to ...