Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmadrosid/dirsize

📁 Get directory or file size easily.
https://github.com/ahmadrosid/dirsize

Last synced: 23 days ago
JSON representation

📁 Get directory or file size easily.

Awesome Lists containing this project

README

        

## Dirsize

Get directory or file size easily.

## Usage
Default folder :
```bash
dirsize
> .: 2.35 MB
```

Custom folder :
```bash
dirsize --dir test
> .: 2.35 MB
```

Custom folder :
```bash
dirsize --dir test1 --dir test2
> ./test1: 2 KB
```

Get file size :
```bash
dirsize --dir ./main
> ./test1: 2.35 MB
> ./test2: 2.35 MB
```

Or without dir flags
```bash
dirsize test-folder
```

## Install
```bash
go install github.com/ahmadrosid/dirsize@latest
```

## LICENSE
MIT