Product SiteDocumentation Site

5.4.25. The File Class

The File class provides services which are common to all the filesystems supported by ooRexx. A File object represents a path to a file or directory. The path can be relative or absolute.
If you create a File object with a relative path, the absolute path will be calculated using the current default directory. This absolute path is memorized on the File object, and will not change if you change of default directory.

Table 5.52. ooRexx File Class

Object
File
+ Comparable
+ Orderable
isCaseSensitive
listRoots
pathSeparator
separator
absoluteFile
absolutePath
canRead
canWrite
compareTo
delete
exists
hashCode
init
isCaseSensitive
isDirectory
isFile
isHidden
lastModified
lastModified=
length
list
listFiles
makeDir
makeDirs
name
parent
parentFile
path
pathSeparator
renameTo
separator
setReadOnly
string

Note

The File class also has available class methods that its metaclass, the Class class (Section 5.1.2, “The Class Class”), defines.

5.4.25.1. Inherited Methods

Methods inherited from the Object class (Section 5.1.1, “The Object Class”).
new (Class Method)initsend
= \= == \== <> ><instanceMethodsendWith
|| '' (abuttal)' ' (blank)instanceMethodssetMethod
(Operator Methods)isAstart
classisInstanceOfstartWith
copyobjectNamestring
defaultNameobjectName=unsetMethod
hasMethodrequest 
identityHashrun 
Methods inherited from the Comparable class (Section 5.4.4, “The Comparable Class”).
compareTo  
Methods inherited from the Orderable class (Section 5.1.1, “The Object Class”).
=, \=, ==, \==, <>, ><, >, <, >=, \<, <=, \>, >>, <<, >>=, \<<, <<=, \>> (Comparison Methods)