class DIRECTORY
Summary
Class invariant
Overview
Creation features
Exported features
Access:
File access:
Other features:
Agent-based features:
Printing:
Agent-based features:
Indexing:
writable attribute
The directory short name.
writable attribute
The directory path in use (see scan).
is_directory: BOOLEAN
is True
constant attribute
is_regular: BOOLEAN
is False
constant attribute
as_directory: DIRECTORY
effective function
as_regular: REGULAR_FILE
effective function
exists: BOOLEAN
writable attribute
has_file (a_file_name: ABSTRACT_STRING): BOOLEAN
effective function
file (a_file_name: ABSTRACT_STRING): FILE
effective function
file_at (index: INTEGER_32): FILE
effective function
lower: INTEGER_32
is 1
constant attribute
Index of the first item.
upper: INTEGER_32
effective function
Index of the last item.
count: INTEGER_32
effective function
Number of items (files or directories) in Current.
is_empty: BOOLEAN
effective function
Is the hoard empty ?
See also count.
first: FIXED_STRING
effective function
The very first item.
effective function
The last item.
item (index: INTEGER_32): FIXED_STRING
effective function
Return the name of entry (file or subdirectory) at index.
has (entry_name: ABSTRACT_STRING): BOOLEAN
effective function
Does Current contain the entry_name (file or subdirectory) ?
new_iterator: ITERATOR[FIXED_STRING]
effective function
connect_to_file_stream (file_stream: FILE_STREAM, filename: STRING)
effective procedure
Connect the file to the operating system file given by its filename.
set_file (a_file_name: ABSTRACT_STRING, a_file: FILE)
effective procedure
file_set (a_file_name: ABSTRACT_STRING): BOOLEAN
effective function
parent: DIRECTORY
frozen
effective function
set_parent (a_parent: DIRECTORY)
effective procedure
enumerate: ENUMERATE[E_]
effective function
get_new_iterator: ITERATOR[E_]
frozen
effective function
for_each (action: PROCEDURE[TUPLE[TUPLE 1[E_]]])
effective procedure
Apply action to every item of Current.
for_all (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
Do all items satisfy test?
aggregate (action: FUNCTION[TUPLE[TUPLE 2[E_, E_], E_]], initial: E_): E_
effective function
Aggregate all the elements starting from the initial value.
out_in_tagged_out_memory
effective procedure
Append terse printable representation of current object in tagged_out_memory.
generation: INTEGER_32
writable attribute
do_all (action: ROUTINE[TUPLE[TUPLE 1[E_]]])
frozen
effective procedure
Apply action to every item of Current.
valid_index (i: INTEGER_32): BOOLEAN
effective function
True when i is valid (i.e., inside actual bounds).