# PathInterface

Chevere\Interfaces\Filesystem\PathInterface

view source (opens new window)

# Extends

# Description

Describes the component in charge of interact with filesystem paths.

# Methods

# __construct

Parameters

  • absolute: string

# toString

Return

string


# assertExists

Asserts whether the path exists.

Return

void


# exists

Indicates whether the path exists.

Return

bool


# isDir

Indicates whether the path is a directory and exists.

Return

bool


# isFile

Indicates whether the path is a file and exists.

Return

bool


# chmod

Wrapper for \chmod.

Parameters

  • mode: int

Return

void


# isWritable

Wrapper for \is_writeable.

Return

bool


# isReadable

Wrapper for \is_readable.

Return

bool


# getChild

Get a child instance for the target child path.

Parameters

  • path: string

Return

self


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