2017 © Pedro Peláez
 

library recycle

A utility library implementing a recycle/trash bin for scripts to more safely recursively delete directories.

image

patternseek/recycle

A utility library implementing a recycle/trash bin for scripts to more safely recursively delete directories.

  • Wednesday, February 24, 2016
  • by patternseek
  • Repository
  • 2 Watchers
  • 1 Stars
  • 148 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

Recycle

Scrutinizer Code Quality SensioLabsInsight, (*1)

A utility library implementing a recycle/trash bin for scripts to recursively 'delete' directories more safely., (*2)

Usage example

// Recycle will attempt to create the directory, but not its parent.
$r = new Recycle( "/tmp/my_apps_recycle_bin/" );

// moveToBin tells you the new filepath/name for the moved
// file or directory. This is mostly useful for testing.
$movedTo = $r->moveToBin("/var/tmp/somefile_or_dir");

// Remove entries before last midnight
$r->emptyBin( $daysToKeep = 1 );

The Versions

24/02 2016

dev-develop

dev-develop

A utility library implementing a recycle/trash bin for scripts to more safely recursively delete directories.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tolan Blundell

library

24/02 2016

dev-master

9999999-dev

A utility library implementing a recycle/trash bin for scripts to more safely recursively delete directories.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tolan Blundell

library

24/02 2016

0.1.3

0.1.3.0

A utility library implementing a recycle/trash bin for scripts to more safely recursively delete directories.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tolan Blundell

library

24/02 2016

0.1.2

0.1.2.0

A utility library implementing a recycle/trash bin for scripts to more safely recursively delete directories.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tolan Blundell

library

24/02 2016

0.1.1

0.1.1.0

A utility library implementing a recycle/trash bin for scripts to more safely recursively delete directories.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tolan Blundell

library

12/06 2015

0.1.0

0.1.0.0

A utility library implementing a recycle/trash bin for scripts to more safely recursively delete directories.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tolan Blundell

library