# DirInterface

Chevere\Interfaces\Filesystem\DirInterface

view source (opens new window)

# Description

Describes the component in charge of interacting with filesystem directories.

# Methods

# __construct

Parameters


# path

Provides access to the PathInterface instance.


# create

Creates the directory.

Parameters

  • mode: int

Return

void


# createIfNotExists

Creates the directory if it doesn't exists.

Parameters

  • mode: int

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

  • path: string

Return

self


Last Updated: 5/1/2021, 2:31:10 PM