Returns the client file properties.
|
Syntax:
|
ClientFileInfo (name, info type)
|
Parameters:
|
name – A file (with or without a path) or a directory.
If no path or a relative path is specified, it will be relative to the project folder.
info type – The file information will be according to the following table:
Info Type Value
|
Description
|
1
|
File name (without path)
|
2
|
Location (file path)
|
3
|
Full path (Location + File name)
|
4
|
Attributes – comma-delimited string that contains the following attributes (additional info exists at msdn):
-
ARCHIVE
-
COMPRESSED
-
DIRECTORY
-
ENCRYPTED
-
HIDDEN
-
READONLY
-
SYSTEM
Note: These strings will be in English even when using the mgconsts of other languages.
|
5
|
Size in bytes (without thousand separator)
|
6
|
Created date
|
7
|
Created time
|
8
|
Modified date
|
9
|
Modified time
|
10
|
Accessed date
|
11
|
Accessed time
|
|
Returns:
|
The client file properties.
The function will return the appropriate information according to the Info Type.
In case of an error (file does not exist), the function will return Null.
|
Note:
|
This is a client-side function that is only available for Rich Client tasks.
Only values 8 (Modified date) and 9 (Modified time) are supported for mobile devices.
|
Exceptions:
|
This function is not supported in Web Client tasks.
|
Platform specific:
|
For the UNIX operating system, the Created and Accessed date and time will be equal to the Modified date and time.
|
See also:
|
FileInfo
The Rich Client Samples project (program REL15b, REL16b, REL17b, REL20b and REL21b)
|