File Attributes

Top  Previous  Next

The file attributes that can be obtained by the Filer component are listed below. The names of this attributes can be used as symbols in:

"File Query String" and "Result Fields" properties of FileQueryDataSource and FileQueryProcess elements
"attributes" parameter of GetAttr function
 

Attribute Name

Description

Example

NAME

Only file name and extension without path.

"Application.doc"

NAMEWE

Pure file name without file extension and path.

"Application"

EXT

File extension

"doc"

RELNAME

The file name relative to the folder being searched. If this attribute is used in GetAttr FML function, then the name relative to the web application's root folder is returned.

"WEB-INF\temp\Application.doc"
"docs\Application.doc"

FULLNAME

Full file name with path and file extension.

"c:\docs\Application.doc"

PARENT

The full name of the directory that the file is in.

"c:\docs"

SIZE

The size of the file in bytes.

"3625"

EXISTS

Whether or not the file exists on disk. "true" means file exists, "false" means it does not.

"true"

ISDIR

Whether or not the entity is a directory. "true" means it is a directory, "false" means it is not.

"false"

ISHIDDEN

Whether or not the file is hidden. "true" means the file is hidden , "false" means it does not.

"false"

CANREAD

Whether or not the current user can read the file. "true" means it can read the file, "false" means it cannot.

"true"

CANWRITE

Whether or not the current user can write to the file. "true" means it can write to the file, "false" means it cannot.

"false"

MODDATE

The last modification date of the file as formatted string.

"2005.09.15 12:55"

MODTIME

The last modification date of the file as long integer.

"1129297253564"