# 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


# createIfNotExists()

Creates the directory if it doesn't exists.

# 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

self


Last Updated: 1/16/2021, 9:23:54 PM