Skip to content

Provides a temporary directory object, that will kill remove the whole directory on destruction or shutdown.

Notifications You must be signed in to change notification settings

derhasi/tempdirectory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tempdirectory

Travis CI Build status for master

Provides a temporary directory object, that will kill remove the whole directory on destruction or shutdown.

Installation

Simpyl require with composer: composer require --dev derhasi/tempdirectory.

Usage

Example from composer-preserver-paths:

$workingDirectory = new TempDirectory('path-preserver-test-working');
// Create directory to test.
$folder1 = $this->workingDirectory->getPath('folder1');
mkdir($folder1);
$file1 = $this->workingDirectory->getPath('file1.txt');
file_put_contents($file1, 'Test content');

About

Provides a temporary directory object, that will kill remove the whole directory on destruction or shutdown.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages