class File (View source)

Properties

static protected bool $useUploadTempDirectory Use Temp or File Upload Temp for temporary files.

Methods

static 
setUseUploadTempDirectory(bool $useUploadTempDir)

Set the flag indicating whether the File Upload Temp directory should be used for temporary files.

static bool
getUseUploadTempDirectory()

Get the flag indicating whether the File Upload Temp directory should be used for temporary files.

static bool
fileExists(string $pFilename)

Verify if a file exists.

static string
realpath(string $pFilename)

Returns canonicalized absolute pathname, also for ZIP archives.

static string
sysGetTempDir()

Get the systems temporary directory.

static 
assertFile(string $filename)

Assert that given path is an existing file and is readable, otherwise throw exception.

Details

static setUseUploadTempDirectory(bool $useUploadTempDir)

Set the flag indicating whether the File Upload Temp directory should be used for temporary files.

Parameters

bool $useUploadTempDir Use File Upload Temporary directory (true or false)

static bool getUseUploadTempDirectory()

Get the flag indicating whether the File Upload Temp directory should be used for temporary files.

Return Value

bool Use File Upload Temporary directory (true or false)

static bool fileExists(string $pFilename)

Verify if a file exists.

Parameters

string $pFilename Filename

Return Value

bool

static string realpath(string $pFilename)

Returns canonicalized absolute pathname, also for ZIP archives.

Parameters

string $pFilename

Return Value

string

static string sysGetTempDir()

Get the systems temporary directory.

Return Value

string

static assertFile(string $filename)

Assert that given path is an existing file and is readable, otherwise throw exception.

Parameters

string $filename

Exceptions

InvalidArgumentException