The method causes an error for curDirname="local/". The method is called with path "/local/notesdata/domino/workspace/applications/eclipse/features/" in my case. The split method produces a wrong path "local/" on Linux without leading slash.
Private Function checkAndCreateDir(directory As String) As String
Dim dirlist As Variant
Dim curDirName As String
On Error GoTo Err_checkAndCreateDir
dirlist = Split(directory,sep)
curDirName = ""
ForAll diritems In dirlist
If diritems <> "" then
curDirName = curDirname & diritems & sep
If Dir$(curDirName,16) = "" Then
MkDir curDirName
End If
End if
End ForAll
checkAndCreateDir = curDirName
Exit_checkAndCreateDir:
Exit Function
Err_checkAndCreateDir:
Call oException.RaiseError(MODULE_NAME, TypeName(Me), Null)
Resume Exit_checkAndCreateDir
End Function