Package: Helper Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Julien BRISWALTER Version: PHPBoost 5.2 - last update: 2019 03 27 Since: PHPBoost 5.2 - 2019 02 14 Located at: helper/FileSystemHelper.class.php

File System helper

Methods summary
public static boolean
# remove_folder( string $folder, boolean $protect_folder = false, string $first_folder_name = '', string $parent_folder = '' )

Remove a folder and its content. The folder can be kept and only emptied.

public static
# copy_folder( string $source_path, string $destination_path )

Copy a folder from a source path to a destination.

public static boolean
# download_remote_file( string $url, string $destination_path, string $extract_archive = true, string $retry = false )

Download a file from a remote url with md5 sum check and extract it if needed in case of a zip file. Curl library needed.