Giter Club home page Giter Club logo

file-analizer's Introduction

file-analizer

This application is used to check the disk usage in bytes of all files in a given directory.

Running / Getting started

go run cmd/app/main.go dir

Will run the application for the given directory

Initial Configuration

This application can generate logs depending on the configuration settings, allowing you to specify the level of logging used by the application. You can specify it by seeting a system variable to LOG_LEVEL. By default the log level is "info".

Building

To generate an executable of the application, use the following command:

go CGO_ENABLED=0 build -o file-analizer cmd/app/main.go

This command will generate an executable of the application named file-analizer

Features

This application will take a mount point as an argument and return a list of all the files on the mountpoint and their disk usage in bytes json format.

Eg:

etdiskusage.py /tmp

{ "files": [ {"/tmp/foo", 1000}, {"/tmp/bar", 1000000}, {"/tmp/buzzz", 42}, ], }

What's all the bells and whistles this project can perform?

  • What's the main functionality
  • You can also do another thing
  • If you get really randy, you can even do this

Argument 1

Type: String
Default: 'default value'

State what an argument does and how you can use it. If needed, you can provide an example below.

Example:

awesome-project "Some other value"  # Prints "You're nailing this readme!"

Contributing

If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.

Licensing

"The code in this project is licensed under MIT license."

file-analizer's People

Contributors

vbl11987 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.