How to List Directory in Ada - Code Snippet

How to perform 'List Directory' in Ada.

example.adb
-- Task: List Directory
-- Language: Ada

procedure list_directory() is begin
    -- Implementation for List Directory
    -- TODO: Implement core logic here
    -- Step 1: Prepare data
    -- Step 2: Process List Directory
    Put_Line("Done");
end;
AdSense Slot