Package DE_EPAGES::TLE::API::FileInfoHandler
TLE handler for file issues. This handler supports the following formats:
- #Path[filepath] - directory, e.g. "C:\\epages\\Shared\\WebRoot"
- #Path[filename] - file name without extension
- #Path[fileext] - extension, e.g. ".txt"
- #Path[fullfilename] - file name including extension
Functions
FileExists
Returns true if file exists.
Syntax |
#FileExists(#FileName, #Directory) |
Example |
#FileExists(#ImageSmall, #PublicPath) |
Input |
|
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 |
|
FileSize
Returns size of file. Returns #UNDEF if the file does not exist.
Syntax |
#FileSize(#FileName, #Directory) |
Example |
#FileSize(#ImageSmall, #PublicPath) |
Input |
|
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 |
|
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 |
|