Files
ruby/win32/makedirs.bat
Hiroshi SHIBATAandClaude Opus 5.5 2b40a19704 win32: Let makedirs.bat tolerate concurrent creation
With parallel make, another job can create the same directory between the existence check and mkdir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 08:00:21 +09:00

4 lines
176 B
Batchfile
Executable File

@echo off
@setlocal EnableExtensions DisableDelayedExpansion || exit /b -1
for %%I in (%*) do if not exist "%%~I/." (mkdir "%%~I" 2> nul || if not exist "%%~I/." exit /b 1)