Document Class
Description
.creationDate
History
Release | Changes |
---|---|
17 R5 | Added |
.creationDate : Date
Description
The .creationDate
property returns the creation date of the file.
This property is read-only.
.creationTime
History
Release | Changes |
---|---|
17 R5 | Added |
.creationTime : Time
Description
The .creationTime
property returns the creation time of the file (expressed as a number of seconds beginning at 00:00).
This property is read-only.
.exists
History
Release | Changes |
---|---|
17 R5 | Added |
.exists : Boolean
Description
The .exists
property returns true if the file exists on disk, and false otherwise.
This property is read-only.
.extension
History
Release | Changes |
---|---|
17 R5 | Added |
.extension : Text
Description
The .extension
property returns the extension of the file name (if any). An extension always starts with ".". The property returns an empty string if the file name does not have an extension.
This property is read-only.
.fullName
History
Release | Changes |
---|---|
17 R5 | Added |
.fullName : Text
Description
The .fullName
property returns the full name of the file, including its extension (if any).
This property is read-only.
.hidden
History
Release | Changes |
---|---|
17 R5 | Added |
.hidden : Boolean
Description
The .hidden
property returns true if the file is set as "hidden" at the system level, and false otherwise.
This property is read/write.
.isAlias
History
Release | Changes |
---|---|
17 R5 | Added |
.isAlias : Boolean
Description
The .isAlias
property returns true if the file is an alias, a shortcut, or a symbolic link, and false otherwise.
This property is read-only.
.isFile
History
Release | Changes |
---|---|
17 R5 | Added |
.isFile : Boolean
Description
The .isFile
property returns always true for a file.
This property is read-only.
.isFolder
History
Release | Changes |
---|---|
17 R5 | Added |
.isFolder : Boolean
Description
The .isFolder
property returns always false for a file.
This property is read-only.
.isWritable
History
Release | Changes |
---|---|
17 R5 | Added |
.isWritable : Boolean
Description
The .isWritable
property returns true if the file exists on disk and is writable.
The property checks the ability of the 4D application to write on the disk (access rights), it does not solely rely on the writable attribute of the file.
This property is read-only.
Example
$myFile:=File("C:\\Documents\\Archives\\ReadMe.txt";fk platform path)
If($myFile.isWritable)
$myNewFile:=$myFile.setText("Added text")
End if
.modificationDate
History
Release | Changes |
---|---|
17 R5 | Added |
.modificationDate : Date
Description
The .modificationDate
property returns the date of the file's last modification.
This property is read-only.
.modificationTime
History
Release | Changes |
---|---|
17 R5 | Added |
.modificationTime : Time
Description
The .modificationTime
property returns the time of the file's last modification (expressed as a number of seconds beginning at 00:00).
This property is read-only.
.name
History
Release | Changes |
---|---|
17 R5 | Added |
.name : Text
Description
The .name
property returns the name of the file without extension (if any).
This property is read-only.
.original
History
Release | Changes |
---|---|
17 R5 | Added |
.original : 4D.File
.original : 4D.Folder
Description
The .original
property returns the target element for an alias, a shortcut, or a symbolic link file. The target element can be:
- a file object
- a folder object
For non-alias files, the property returns the same file object as the file.
This property is read-only.