Folder::exist()

Checks if the folder exists.

Table of Contents
  1. Description
  2. Example

Description

Folder::exist(): false|string;

This method returns the current folder path if the folder exists, otherwise, it returns false.

Example

$folder = new Folder('.\path\to\folder');

if ($path = $folder->exist()) {
    echo 'Folder ' . $path . ' does exist.';
}

Folder::exist()

Checks if the folder exists.

Folder::size()

Gets the total sizes of files contained in the folder in human readable string format.