golarge

command module
v0.0.0-...-abd49f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2023 License: MIT Imports: 14 Imported by: 0

README

golarge

Look for large files recursively from given directory path

Features

  • Recursively analyse files
  • export results to text file
  • export results to JSON file
  • logging to stdout or file
  • concurrent file processing

Manual build from source (local)

Install Go/Golang

Follow Installation instructions.

Clone the repository

git clone https://github.com/will666/golarge.git
cd golarge
make prod

Install binay (remote)

Note: golang must be installed locally

go install https://github.com/will666/golarge@latest

Run binary (remote)

Note: golang must be installed locally

go run https://github.com/will666/golarge@latest /foo

Usage

Usage: golarge [OPTIONS] <PATH>

Look for files bigger than 1GiB from given directory path

Options:
  -o <string>     Output path (default: list.txt)
  -j      	      Enable export to JSON file
  -v      	      Display warnings & error instead of logging to file
  -t      	      Enable concurrent file processing

Examples:
  golarge /foo/bar
  golarge -v /bar
  golarge -o list.txt -j /foo/bar
  golarge -t /foo
See help
golarge -h
Search files at /foo/bar, save result to file large_files.txt.
golarge -o large_files.txt /foo/bar
Search files at /foo, save result to json format (default: list.json).
golarge -j /foo
Concurrent file processing (goroutines)

Enabling concurrent processing can greatly decrease time to result on most machines with fast storage, it could be slower on old hardware and mechanical storage. When enabled, each file is processed in an independant thread (Goroutine).

golarge -t /bar

Licence

MIT

Note

clarge: Another implementation in C

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL