OpenEdge.Core.FileInfo
- Last Updated: January 15, 2026
- 6 minute read
- OpenEdge
- Version 12.8
- Documentation
|
Method Summary
| Options | Name | Purpose | |
|---|---|---|---|
| CHARACTER AbsolutePath () |
/** Returns the absolute path. If the path does not exist on this host, or the file on this host is not
the correct type, the unknown value is returned.
@return character An absolute (file system) representation of this path */
|
||
| INTEGER CompareTo (FileInfo) |
/* Comparison method, used by SortedSet's default comparer
FileInfo is inherited by OpenEdge.Core.File and OpenEdge.Core.Folder, so both object types can be
passed using FileInfo.
- If the returned value is less than 0 (zero), then the current object sorts before the object passed in.
- If the returned value equals 0 (zero) , then the current object occupies the same position in the sort order.
- If the returned value is greater than 0(zero), then the current object sorts after the object passed in.
- If either object's Value is the unknown value (?), then that sorts high/early/before
@param FileInfo The object to compare to (Can be type File or Folder).
@return integer 0 = same object
+1 = sorts after
-1 = sorts before */
|
||
| LOGICAL Create () |
/* Creates the path on disk.
Note that no error is thrown from this method; FALSE is returned instead.
@return logical TRUE if the file was created. FALSE if the file already exists, or if an error wa raised during creation. */
|
||
| LOGICAL Delete () |
/* Deletes the path on disk.
Note that no error is thrown from this method; FALSE is returned instead.
@return logical TRUE if the path was deleted. FALSE if the path does not exist, or does not have write permissions,
or if an error was raised during creation. */
|
||
| LOGICAL Equals (Object) |
|
||
| CHARACTER GetShortName () |
/* Returns the Windows short name for this path. The absolute - resolved - path is returned. Backslashes are converted
to / for the path separator
@return character The short path. On non-Windows, or if an error is encountered, the absolute path is returned. */
|
||
| LOGICAL HasAttribute (character) |
/* Indicates whether the path has certain characteristics, as per FILE-TYPE
attributes. See https://docs.progress.com/bundle/abl-reference/page/FILE-TYPE-attribute.html for
details.
The FILE-INFO handle must be set before calling this method; this is typically done using SetFileInfo().
@param character An attribute value - a single character from the documented values
@return logical TRUE if the path exists on disk, AND is of the correct type (D or F) AND has the input attribute. FALSE otherwise */
|
||
| INTEGER HashCode () |
/* Hashing method for creating a proper index for use with Progress.Collections.HashMap
@return integer Result of the hash-code method using this object's comparable value(s) */
|
||
| LOGICAL HasLegalName () |
/* Returns a flag indicating whether the path is legal for the current OS.
@return logical TRUE if the path Name contains no illegal characters for the current platform, FALSE otherwise */
|
||
| RestoreFileInfo () |
/* Restores prior FILE-INFO value when available */
|
||
| SaveFileInfo () |
/* Save the file-info handle if a path is available */
|
||
| SetFileInfo () |
/* Sets the FILE-INFO value to represent this path */
|
||
| LOGICAL StringContainsIllegalCharacters (character) |
/* Indicates whether a string has illegal characters anywhere in it.
@param character A string to check
@return logical TRUE if the string is not-null, and has at least one illegal character in it; FALSE otherwise */
|
||
| CHARACTER ToString () |
|
Constructor Summary
| Options | Name | Purpose | |
|---|---|---|---|
| FileInfo (character, character) |
/* Constructor
@param character A path - not null. Cannot contain any of the following characters: <>:"|?*
@param character The file-info type: D or F typically */
|
||
| FileInfo (character, character, character) |
/* Constructor. Sanitises the path - ie replaces illegal characters with the input replacement char(s).
@param character A path - not null, not ".." Paths may start with "." or ".."
@param character A/the replacement character that will replace the illegal characters. If ? is passed, no replacements
are done, and the path name cannot contain any of the following characters: <>:"|?* */
|
Property Summary
| Options | Name | Purpose | |
|---|---|---|---|
| CHARACTER Basename |
|
||
| LOGICAL CanCreate |
|
||
| LOGICAL CanRead |
|
||
| LOGICAL CanWrite |
|
||
| DATETIME-TZ CreatedAt |
|
||
| LOGICAL Exists |
|
||
| LOGICAL IsRelativePath |
|
||
| CHARACTER LastFilePath |
|
||
| DATETIME-TZ LastUpdatedAt |
|
||
| CHARACTER Name |
|
Method Detail
CHARACTER AbsolutePath ()
|
||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
INTEGER CompareTo (FileInfo)
|
||||||||||||||||||||||||||||||||
LOGICAL Create ()
|
||||||||||||||||||||||||||||||||
LOGICAL Delete ()
|
||||||||||||||||||||||||||||||||
LOGICAL Equals (Object)
|
||||||||||||||||||||||||||||||||
CHARACTER GetShortName ()
|
||||||||||||||||||||||||||||||||
LOGICAL HasAttribute (character)
|
||||||||||||||||||||||||||||||||
INTEGER HashCode ()
|
||||||||||||||||||||||||||||||||
LOGICAL HasLegalName ()
|
||||||||||||||||||||||||||||||||
RestoreFileInfo ()
|
||||||||||||||||||||||||||||||||
SaveFileInfo ()
|
||||||||||||||||||||||||||||||||
SetFileInfo ()
|
||||||||||||||||||||||||||||||||
LOGICAL StringContainsIllegalCharacters (character)
|
||||||||||||||||||||||||||||||||
CHARACTER ToString ()
|
||||||||||||||||||||||||||||||||
Constructor Detail
FileInfo (character, character)
|
||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
FileInfo (character, character, character)
|
||||||||||||||||||||||
Property Detail
CHARACTER Basename
|
||||||||
|---|---|---|---|---|---|---|---|---|
LOGICAL CanCreate
|
||||||||
LOGICAL CanRead
|
||||||||
LOGICAL CanWrite
|
||||||||
DATETIME-TZ CreatedAt
|
||||||||
LOGICAL Exists
|
||||||||
LOGICAL IsRelativePath
|
||||||||
CHARACTER LastFilePath
|
||||||||
DATETIME-TZ LastUpdatedAt
|
||||||||
CHARACTER Name
|
||||||||