Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
/ danooc Public archive

A simple and fast directory analyzer. Gives absolute and percentage memory statistics!

License

Notifications You must be signed in to change notification settings

billpcs/danooc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

danooc

A very simple directory analyzer written in ooc

To be able to compile the program and use it you will have to install ooc's compiler, rock.

For a quick start you can:

$ git clone https://github.com/ooc-lang/rock.git

$ cd rock

$ make rescue

and then add rock to your path.

After building rock, you are ready to get danooc, compile it and use it!

$ git clone https://github.com/billpcs/danooc

$ cd danooc

$ rock

This will create an executable file named 'danooc'

The first time you will get a warning

warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

but this happens every time you initialize a HashMap, so no worries.

You can add it to your path or specify the full path when you use it. Below you can see I have added it to my path so I can just write

$ danooc

However if it is just an executable and not in your path you would have to use

$ ./danooc

in order to run it

Here is a quick demo:

You can call the program with no arguments, so it executes for the current directory

Or you can call it for a certain path in your system

Sometimes, if you don't have permission to certain files/directories the program will fail to read the required data. You can use sudo if you want :D

You can also, of course, combine it with pipes to find certain extensions

$ danooc | grep ".ooc "

to find info on only ooc files or

$ danooc | grep "Size"

to see the estimated size of the current directory

danooc is licensed under the MIT license.

About

A simple and fast directory analyzer. Gives absolute and percentage memory statistics!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages