Folder::__construct()

The constructor.

Table of Contents
  1. Description
  2. Example

Description

Folder::__construct(?string $path = null): self;

This method will be called when you instantiate a Folder class.

Example

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

Folder::__construct()

The constructor.

Folder::size()

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