Documentation

Fs
in package

Common utilities

Table of Contents

cleanUpDirectory()  : void
Method cleans up all files in the directory
getClassPath()  : string
Method returns class path
isDirectoryEmpty()  : bool
Method return true is the directory is empty

Methods

cleanUpDirectory()

Method cleans up all files in the directory

public static cleanUpDirectory(string $path) : void
Parameters
$path : string

path to the directory

Return values
void

getClassPath()

Method returns class path

public static getClassPath(object $object) : string
Parameters
$object : object

object

Return values
string

isDirectoryEmpty()

Method return true is the directory is empty

public static isDirectoryEmpty(string $path) : bool
Parameters
$path : string

path to the checking directory

Return values
bool

true if the directory is empty, false otherwise

Search results