# PathInterface

Chevere\Interfaces\Filesystem\PathInterface

view source

# Extends

# Description

Describes the component in charge of interact with filesystem paths.

# Methods

# __construct()

# Parameters

  1. string $absolute

# 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

  1. int $mode

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

  1. string $path

RETURN

self


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