https://github.com/harr1424/cpp-file-sizes
A simple command line tool to find large files within a specified directory.
https://github.com/harr1424/cpp-file-sizes
cpp filesystem
Last synced: about 1 month ago
JSON representation
A simple command line tool to find large files within a specified directory.
- Host: GitHub
- URL: https://github.com/harr1424/cpp-file-sizes
- Owner: harr1424
- Created: 2022-12-07T16:44:22.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T16:33:47.000Z (almost 2 years ago)
- Last Synced: 2025-06-26T00:11:27.901Z (4 months ago)
- Topics: cpp, filesystem
- Language: C++
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CPP-File-Sizes
A simple command line tool to find large files within a specified directory.After creating a [similar program using Rust](https://github.com/harr1424/Rust-Files), I was curious to learn how to do the same using C++.
This program will display the ten largest files in the specified directory, as measured in bytes.
```
./cpp_fs_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
```I created the same program using [Go](https://github.com/harr1424/go_filesystem_size), and [C](https://github.com/harr1424/c_filesystem_size).