# DirInterface

Chevere\Interfaces\Filesystem\DirInterface

view source

# Description

Describes the component in charge of interacting with filesystem directories.

# Methods

# __construct()

# Parameters

  1. PathInterface $path

# path()

Provides access to the PathInterface instance.


# create()

Creates the directory.

# Parameters

  1. int $mode

RETURN

void


# exists()

Returns a boolean indicating whether the directory exists.

RETURN

bool


# assertExists()

RETURN

void


# removeContents()

Removes the contents from a path without deleting the path.

THROWS

RETURN

array


# remove()

Removes the directory.

THROWS

RETURN

array


# getChild()

Gets a child DirInterface for the added path.

# Parameters

  1. string $path

RETURN

DirInterface


Last Updated: 8/2/2020, 1:36:58 AM