Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View 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;

View 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

View file

@ -0,0 +1 @@
New-Item -Path ".\path\to\dir" -ItemType Directory -ErrorAction SilentlyContinue

View file

@ -0,0 +1 @@
dir.create("~/path/to/dir", recursive=TRUE)