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

Package DE_EPAGES::TLE::API::FileInfoHandler

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

Functions

FileExists
FileInfo
FileSize
ImageInfo
MP3Info

FileExists

Returns true if file exists.

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

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

MP3Info

Returns information about a mp3 file.

Syntax
#MP3Info(#FileName, #Directory)
Example
#LOCAL("Info", #MP3Info(#MP3File, #PublicPath))
   #Info.Title, #Info.Track, #Info.Artist, #Info.Album, #Info.Comment,
   #Info.Year, #Info.Genre
#ENDLOCAL
Input
#FileName (string)
file name
#Directory (string)
directory name (optional)