ensure_directory_exists Subroutine

public subroutine ensure_directory_exists(filepath)

Ensure output directory exists for a given filepath Extracts the parent directory and creates it securely using the runtime file operations with path validation.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filepath