Skip to content

downshiftorg/cleandirs-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

cleandirs

This PHP script is top notch lolz for cleaning out directories. Directories are sorted by creation time - oldest directories deleted first.

Setup

$ sudo mv cleandirs /usr/local/bin
$ sudo chmod +x /usr/local/bin/cleandirs

Usage

$ sudo cleandirs /var/www/builds

The KEEP_DIRS constant in the script will say how many directories should be kept. The most recent directories according to the number of the directory will be kept.

About

Top notch PHP lolz for cleaning out some directories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages