directorysize

command module
v0.0.0-...-77ee1bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Directory Size Calculator

Description

This is a simple go script that calculates the size of a directory, all of its subdirectories, and outputs to a text file. It is useful for finding out how much space a directory is taking up on your computer.

Usage

  1. Clone this repo
git clone https://github.com/HelixHEX/makeutility.git
  1. Run the script

Note: When asked for the ouput file name, don't enter a file extension. The script will automatically add a .txt extension to the file name.

go run main.go
Example
$ go run main.go 
Enter directory path: /Users/username/Desktop
Enter output file name: output
Total size of '/Users/username/Desktop' is 1.2 MB

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址