https://github.com/harr1424/go-file-sizes
A simple CLI application to find large files in a specified directory
https://github.com/harr1424/go-file-sizes
filesystem go
Last synced: 4 months ago
JSON representation
A simple CLI application to find large files in a specified directory
- Host: GitHub
- URL: https://github.com/harr1424/go-file-sizes
- Owner: harr1424
- Created: 2022-12-09T02:19:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T16:36:19.000Z (almost 2 years ago)
- Last Synced: 2023-12-13T18:30:37.937Z (almost 2 years ago)
- Topics: filesystem, go
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GO-File-Sizes
A simple CLI application to find large files in a specified directory.After creating a similar program using [Rust](https://github.com/harr1424/Rust-Files), [C](https://github.com/harr1424/c_filesystem_size), and [C++](https://github.com/harr1424/cpp_filesystem_size), I was curious to learn how to do the same using Go.
This program will display the ten largest files in the specified directory, as measured in bytes.
```
./go_filesystem_size ~/google-cloud-sdk
``````
/Users/user/google-cloud-sdk/bin/anthoscli: 94968320
/Users/user/google-cloud-sdk/data/cli/gcloud.json: 71649707
/Users/user/google-cloud-sdk/lib/googlecloudsdk/generated_clients/apis/compute_alpha.json: 4728478
/Users/user/google-cloud-sdk/lib/googlecloudsdk/generated_clients/apis/compute_beta.json: 4147516
/Users/user/google-cloud-sdk/lib/googlecloudsdk/generated_clients/apis/compute/alpha/compute_alpha_messages.py: 4034669
/Users/user/google-cloud-sdk/lib/googlecloudsdk/generated_clients/apis/compute_v1.json: 3904144
/Users/user/google-cloud-sdk/data/cli/gcloud_completions.py: 3754693
/Users/user/google-cloud-sdk/lib/googlecloudsdk/generated_clients/apis/compute/beta/compute_beta_messages.py: 3537222
/Users/user/google-cloud-sdk/lib/googlecloudsdk/generated_clients/apis/compute/v1/__pycache__/compute_v1_messages.cpython-37.pyc: 3388318
/Users/user/google-cloud-sdk/lib/googlecloudsdk/generated_clients/apis/compute/v1/compute_v1_messages.py: 3360648
```