Class

Folder

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

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

FileSystemElement
Extended by Folder
Methods summary
public
# __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
$path