Skip to content

Recusive File count browser from web or cron/CLI email notifier

Notifications You must be signed in to change notification settings

turvas/filecount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

filecount

Recusive File cont browser from web or cron/CLI email notifier

in CLI following arguments are accepted:

-mmaxcount maximum number of files allowed, for example 100000, only mandatory argument

-ppath path from where start checking, decault to local directory

-eemail e-mail address to send notification

-ttreshold percentage (as number) of maxcount, when warning email is sent

-ddepth number of directory levels to print

-v verbose output

-n no output at all (helpful if running from cron)

ps. no space is allowed between option and value.

for example in cron, to trigger email to [email protected] upon reaching 90% of 100 000 files from username home dir and display 1 level of subdirectories, use something like:

/usr/bin/php /home/username/filecount4.php -m100000 [email protected] -p/home/username -d1 -n

About

Recusive File count browser from web or cron/CLI email notifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages