Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmadrosid/dirsize
📁 Get directory or file size easily.
https://github.com/ahmadrosid/dirsize
Last synced: 22 days ago
JSON representation
📁 Get directory or file size easily.
- Host: GitHub
- URL: https://github.com/ahmadrosid/dirsize
- Owner: ahmadrosid
- Created: 2021-10-06T18:27:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-08T15:28:53.000Z (about 3 years ago)
- Last Synced: 2024-06-20T17:43:10.676Z (5 months ago)
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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