Runtime OS detection and cross-platform system operations This module avoids preprocessor issues by detecting OS at runtime
Detect if running on Windows at runtime
Map Unix-style /tmp paths to Windows-compatible paths
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | path |
Normalize path separators for the target platform
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | path | |||
logical, | intent(in) | :: | to_windows |
Create directory with security restrictions SECURITY: Only allows creation of test output directories
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | path | |||
logical, | intent(out) | :: | success |
SECURITY: File deletion disabled for security compliance
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
logical, | intent(out) | :: | success |
Open file with default application - SECURITY: Disabled for compliance
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename | |||
logical, | intent(out) | :: | success |
Check if a command is available - with security restrictions
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | command_name | |||
logical, | intent(out) | :: | available |