PHP code example of exteon / file-helper
1. Go to this page and download the library: Download exteon/file-helper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
exteon / file-helper example snippets
use Exteon\FileHelper;
// Delete a directory's contents, but preserve the directory itself
FileHelper::rmDir('/foo/bar', false);
// Copy a directory's contents
FileHelper::copyDir('/foo/bar','/foo/baz');
// Create all directories alongside a filesystem path
FileHelper::preparePath('/foo/bar');