Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
17
Task/Make-directory-path/Ada/make-directory-path.adb
Normal file
17
Task/Make-directory-path/Ada/make-directory-path.adb
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;
|
||||
21
Task/Make-directory-path/Batch-File/make-directory-path.bat
Normal file
21
Task/Make-directory-path/Batch-File/make-directory-path.bat
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
@echo off
|
||||
choice /M "Custom implementation?"
|
||||
if errorlevel 2 goto native
|
||||
goto custom
|
||||
|
||||
:native
|
||||
md %~1
|
||||
goto:eof
|
||||
|
||||
:custom
|
||||
::pushd stack will be discarded at endlocal or EOF
|
||||
setlocal
|
||||
set "dirpath=%~1"
|
||||
set dirpath="%dirpath:\=" "%"
|
||||
::resolve \ (filesystem root) at the start
|
||||
set "dirpath=%dirpath:"" "="\%"
|
||||
for %%i in (%dirpath%) do (
|
||||
md %%i
|
||||
pushd %%i
|
||||
)
|
||||
goto:eof
|
||||
|
|
@ -0,0 +1 @@
|
|||
New-Item -Path ".\path\to\dir" -ItemType Directory -ErrorAction SilentlyContinue
|
||||
1
Task/Make-directory-path/R/make-directory-path.r
Normal file
1
Task/Make-directory-path/R/make-directory-path.r
Normal file
|
|
@ -0,0 +1 @@
|
|||
dir.create("~/path/to/dir", recursive=TRUE)
|
||||
Loading…
Add table
Add a link
Reference in a new issue