ePages 6.10 - DE_EPAGES/TLE/API/FileInfoHandler.pm

Package DE_EPAGES::TLE::API::FileInfoHandler

TLE handler for file issues. This handler supports the following formats:

Functions

FileInfo
FileSize
ImageInfo

FileInfo

Returns information about a file. See DE_EPAGES::Core::API::File::GetFileInfo.

Syntax
#FileInfo(#FileName, #Directory)
Example
#LOCAL("Info", #FileInfo(#ImageSmall, #PublicPath))
   #Info.Size, #Info.LastChange[datetime]
#ENDLOCAL
Input
#FileName (string)
file name
#Directory (string)
directory name

FileSize

Returns size of file. Returns #UNDEF if the file does not exist.

Syntax
#FileSize(#FileName, #Directory)
Example
#FileSize(#ImageSmall, #PublicPath)
Input
#FileName (string)
file name
#Directory (string)
directory name

ImageInfo

Returns information about an image file. See DE_EPAGES::Core::API::Image::GetImageInfo.

Syntax
#ImageInfo(#FileName, #Directory)
Example
#LOCAL("Info", #ImageInfo(#ImageSmall, #PublicPath))
    #Info.Height, #Info.Width
#ENDLOCAL
Input
#FileName (string)
file name
#Directory (string)
directory name