SproutCMS

This is the code documentation for the SproutCMS project

function exists()

Returns TRUE if the file exists, and FALSE if it does not

Usage

bool File::exists ( string $filename );

Arguments

  1. string $filename
    The name of the file in the repository. Deprecated: an ID value is also accepted in order
           to support older modules; such modules need to be updated to avoid an extra database lookup.

Return value

  • bool
    TRUE if the file exists, and FALSE if it does not