class EL_DIRECTORY_INFO_COMMAND_IMP
Unix implementation of EL_DIRECTORY_INFO_COMMAND_I interface
note
description: "Unix implementation of ${EL_DIRECTORY_INFO_COMMAND_I} interface"
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-13 8:27:04 GMT (Friday 13th September 2024)"
revision: "12"
class
EL_DIRECTORY_INFO_COMMAND_IMP
inherit
EL_DIRECTORY_INFO_COMMAND_I
export
{NONE} all
end
EL_CAPTURED_OS_COMMAND_IMP
undefine
reset
end
create
make, make_default
feature {NONE} -- Implementation
do_with_lines (a_lines: like new_output_lines)
--
do
from a_lines.start until a_lines.after loop
if a_lines.shared_item.is_integer_32 then
size := size + a_lines.shared_item.to_integer_32
file_count := file_count + 1
end
a_lines.forth
end
end
feature {NONE} -- Constants
Template: STRING = "[
find $target_path -type f -printf "%s\n"
]"
end