Sorting Photos By Date

SortingPhotosException extends RuntimeException
in package

Table of Contents

DIRECTORY_IS_EMPTY  = 'The directory %s is empty'
FAILED_CREATE_FOLDER  = 'Failed to create a folder %s'
FAILED_EXTRACT_METADATA  = 'Failed to extract file %s metadata'
FILE_EXISTS  = 'The file %s already exists'
NO_SUCH_DIRECTORY  = 'There %s is no such directory'
NOT_COPY_FILE  = 'Couldn't copy the file %s'
directoryIsEmpty()  : self
failedCreateFolder()  : self
failedExtractMetadata()  : self
fileExists()  : self
noSuchDirectory()  : self
notCopyFile()  : self

Constants

FAILED_EXTRACT_METADATA

private mixed FAILED_EXTRACT_METADATA = 'Failed to extract file %s metadata'

Methods

directoryIsEmpty()

public static directoryIsEmpty(string $dir) : self
Parameters
$dir : string
Return values
self

failedCreateFolder()

public static failedCreateFolder(string $dir) : self
Parameters
$dir : string
Return values
self

failedExtractMetadata()

public static failedExtractMetadata(string $filePath) : self
Parameters
$filePath : string
Return values
self

fileExists()

public static fileExists(string $file) : self
Parameters
$file : string
Return values
self

noSuchDirectory()

public static noSuchDirectory(string $dir) : self
Parameters
$dir : string
Return values
self

notCopyFile()

public static notCopyFile(string $file) : self
Parameters
$file : string
Return values
self

Search results