https://github.com/gaelgirodon/dirstat
A simple tool that helps to clean up directories by scanning them and generating interactive statistics reports.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.7%) to scientific vocabulary
Keywords
Repository
A simple tool that helps to clean up directories by scanning them and generating interactive statistics reports.
Basic Info
Statistics
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 2
- Releases: 11
Topics
Metadata Files
README.md
DirStat
A simple tool that helps to clean up directories by scanning them and generating interactive statistics reports.
About
DirStat is a lightweight command-line tool (< 1 MB). It allows to scan a directory that needs to be cleaned up, collect statistics about it and make them easily browsable by generating an interactive graphical HTML report.
Statistics about biggest files and directories (both in size and files count, recursively or not), most used extensions, most frequent modification years and maximum level of nesting help to know where the disk space has gone and make it easier to clean the directory.
Install
Download and extract the latest release:
```powershell
Windows (PowerShell)
$DOWNLOADURL = "https://github.com/GaelGirodon/dirstat/releases/latest/download" Invoke-WebRequest -OutFile "dirstat.zip" "$DOWNLOADURL/dirstatwindowsamd64.zip" Expand-Archive "dirstat.zip" -DestinationPath ./ ```
```shell
Linux (Bash)
DOWNLOADURL="https://github.com/GaelGirodon/dirstat/releases/latest/download" curl -sL "$DOWNLOADURL/dirstatlinuxamd64.tar.gz" | tar xvz ```
Usage
Open a terminal and scan a directory using the dirstat binary:
shell
dirstat [flags] <path>
Invoke dirstat without any argument to run the interactive mode.
:warning: Scanning directories with many files can take a long time and leads to a large report.
Arguments
| Argument | Description | Default |
| ----------- | ----------------------------------------- | ------- |
| <path> | Path to the directory to scan | |
| -o <path> | Path to the directory to write reports to | . |
| -v | Print the version number and exit | |
| -h | Print the help message and exit | |
Example
CLI
shell
$ dirstat ./my/dir/ -o ./report/
Scanning ./my/dir/
42 files scanned
Reports written to report/dirstat-report.*
Interactive mode
```shell $ dirstat
/ _ ()/ __/ /__ / / / // / / /\ \/ _/ _ `/ _/ //// //_/_,/_/
Type or paste the path to the directory to scan and press the Enter key:
./my/dir/
Scanning ./my/dir/ 42 files scanned Reports written to dirstat-report.*
Press the Enter key to open the report and exit... ```
Report
DirStat generates two report files:
dirstat-report.html: the interactive graphical HTML reportdirstat-report.json: raw directory statistics

License
DirStat is licensed under the GNU General Public License.
Owner
- Name: Gaël Girodon
- Login: GaelGirodon
- Kind: user
- Location: Toulouse, France
- Website: https://gaelgirodon.fr/
- Repositories: 7
- Profile: https://github.com/GaelGirodon
GitHub Events
Total
- Watch event: 2
- Push event: 5
Last Year
- Watch event: 2
- Push event: 5
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 3
- Total pull requests: 1
- Average time to close issues: 7 months
- Average time to close pull requests: 4 months
- Total issue authors: 3
- Total pull request authors: 1
- Average comments per issue: 1.33
- Average comments per pull request: 1.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- BertrandAlexandre (1)
- Pingger (1)
- GaelGirodon (1)
Pull Request Authors
- dependabot[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- 122 dependencies
- @fullhuman/postcss-purgecss ^4.1.3 development
- @preact/preset-vite ^2.2.0 development
- autoprefixer ^10.4.4 development
- postcss-nested ^5.0.6 development
- vite ^2.9.5 development
- bulma ^0.9.3
- preact ^10.7.1
- actions/checkout v3 composite
- actions/setup-go v3 composite
- actions/setup-node v3 composite
- actions/upload-artifact v3 composite