class EL_DIR_URI_PATH
Client examples: CLASS_LINK ; DEVELOPER_CLASS_LINK ; DUPLICITY_ARGUMENTS ; DUPLICITY_BACKUP ; DUPLICITY_COLLECTION_STATUS_OS_CMD ; DUPLICITY_LISTING_OS_CMD ; DUPLICITY_OS_COMMAND ; DUPLICITY_RESTORE ; GITHUB_TYPE_VARIABLE_SUBSTITUTION ; MONITORED_WEBSITE ; PUBLISHER_CONFIGURATION ; REPOSITORY_SOURCE_LINK_EXPANDER_TEST_SET ; URI_TEST_SET
Unescaped URI to a directory
The following are two example URIs and their component parts:
foo://example.com:8042/over/there \_/ \______________/\_________/ | | | scheme authority path
note
description: "Unescaped URI to a directory"
notes: "[
The following are two example URIs and their component parts:
foo://example.com:8042/over/there
\_/ \______________/\_________/
| | |
scheme authority path
]"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2022 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2024-09-25 13:19:19 GMT (Wednesday 25th September 2024)"
revision: "31"
class
EL_DIR_URI_PATH
inherit
EL_DIR_PATH
undefine
append, append_file_prefix, as_string_32,
default_create, escaped, make, make_from_other,
is_absolute, is_equal, is_less, is_uri, first_index, type_alias,
part_count, part_string, set_path, set_volume_from_string,
Type_parent, Separator
redefine
Type_file_path, make_parent
end
EL_URI_PATH
rename
make_from_file_path as make_from_dir_path,
to_file_path as to_dir_path
undefine
has_step
redefine
make_from_dir_path
end
create
default_create, make, make_file, make_scheme, make_from_path, make_from_dir_path, make_parent,
make_from_encoded, make_from_uri
convert
make ({ZSTRING, STRING_32}),
make_from_path ({PATH}),
make_from_dir_path ({EL_DIR_PATH}),
make_from_encoded ({STRING, IMMUTABLE_STRING_8, EL_STRING_8}),
make_from_uri ({EL_URI, EL_URL}),
to_string: {ZSTRING}, as_string_32: {STRING_32, READABLE_STRING_GENERAL}, steps: {EL_PATH_STEPS}, to_path: {PATH}
feature {NONE} -- Initialization
make_from_dir_path (a_path: EL_DIR_PATH)
do
Precursor (a_path)
end
make_parent (other: EL_URI_PATH)
do
authority := other.authority.twin
scheme := other.scheme
Precursor (other)
end
feature -- Conversion
to_dir_path: EL_DIR_PATH
do
Result := parent_path + base
end
feature {NONE} -- Type definitions
Type_file_path: EL_FILE_URI_PATH
once
end
end