Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Make-directory-path/Ada/make-directory-path.ada
Normal file
17
Task/Make-directory-path/Ada/make-directory-path.ada
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
with Ada.Command_Line;
|
||||
with Ada.Directories;
|
||||
with Ada.Text_IO;
|
||||
|
||||
procedure Make_Directory_Path is
|
||||
begin
|
||||
if Ada.Command_Line.Argument_Count /= 1 then
|
||||
Ada.Text_IO.Put_Line ("Usage: make_directory_path <path/to/dir>");
|
||||
return;
|
||||
end if;
|
||||
|
||||
declare
|
||||
Path : String renames Ada.Command_Line.Argument (1);
|
||||
begin
|
||||
Ada.Directories.Create_Path (Path);
|
||||
end;
|
||||
end Make_Directory_Path;
|
||||
Loading…
Add table
Add a link
Reference in a new issue