Package: IO\Filesystem Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Nicolas Duhamel Version: PHPBoost 5.2 - last update: 2016 10 24 Since: PHPBoost 2.0 - 2008 07 06 Contributor: Loic ROUCHON Contributor: Benoit SAUTEL Contributor: Arnaud GENET Located at: io/filesystem/Folder.class.php

This class allows you to handle very easily a folder on the server.

Extended by Folder
Methods summary
# __construct( string $path )

Builds a Folder object.

public boolean
# create( )

Returns true if the folder exists after this call, else, false

public File[]
# get_files( string $regex = '', boolean $regex_exclude_files = false )

Lists the files contained in this folder.

public Folder[]
# get_folders( string $regex = '' )

Lists the folders contained in this folder.

public Folder
# get_first_folder( )

Returns the first folder present in this folder

public FileSystemElement[]
# get_all_content( )

Returns all the file system elements contained by the folder.

public True
# delete( )

Deletes the folder and all what it contains.

public integer
# get_last_modification_date( )

Returns the date of the last modification of the folder.

Properties inherited from FileSystemElement