Folder::route()

Returns the folder’s relative path.

Table of Contents
  1. Description
  2. Example

Description

Folder::route(): ?string;

This method returns the folder’s path relative to the PATH constant value.

Example

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

echo $folder->route(); // Returns `'/path/to/folder'`

Folder::route()

Returns the folder’s relative path.

Folder::size()

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