ms
This commit is contained in:
@@ -141,25 +141,37 @@ Public Class ClassImport_Windream
|
||||
If CURRENT_CHECK_SUBFOLDER = True And CURRENT_SUBFOLDER <> "" Then
|
||||
Zielordner = Zielordner & "\" & CURRENT_SUBFOLDER
|
||||
End If
|
||||
Zielordner = Zielordner.Replace("\\", "\")
|
||||
If Zielordner.Contains("/") Then
|
||||
ClassLogger.Add(String.Format(">> Targetpath contains /-sign. / will be replaced with _"))
|
||||
Zielordner = Zielordner.Replace("/", "_")
|
||||
End If
|
||||
|
||||
|
||||
Try
|
||||
Select Case clsWD_GET.WD_PATH_EXISTS(Zielordner.Substring(2))
|
||||
Case False
|
||||
ClassLogger.Add(String.Format(">> Targetpath ({0}) is not existing or result of WD_PATH_EXISTS was false.", Zielordner.Substring(2)))
|
||||
Dim split() As String = Zielordner.Split("\")
|
||||
Dim Path_Combined As String = ""
|
||||
For Each s As String In split
|
||||
Path_Combined &= s & "\"
|
||||
If Path_Combined <> "W:\" Then
|
||||
|
||||
Dim temppath = Path_Combined.Substring(2)
|
||||
Try
|
||||
Select Case clsWD_GET.WD_PATH_EXISTS(Path_Combined.Substring(2))
|
||||
temppath = Path_Combined.Substring(2).Substring(0, temppath.Length)
|
||||
|
||||
Select Case clsWD_GET.WD_PATH_EXISTS(temppath)
|
||||
Case False
|
||||
clsWindream.MY_WDSESSION.GetNewWMObjectFS(2, Path_Combined.Substring(2), 0) 'WMEntityFolder,WMObjectEditModeNoEdit)
|
||||
clsWindream.MY_WDSESSION.GetNewWMObjectFS(2, temppath, 0) 'WMEntityFolder,WMObjectEditModeNoEdit)
|
||||
Case -10
|
||||
Return False
|
||||
End Select
|
||||
Catch ex As Exception
|
||||
If Not ex.Message.Contains("Filename exists!") Then
|
||||
ClassLogger.Add(String.Format(">> Could not create folder-part ({0}): " & ex.Message, Path_Combined.Substring(2)), True)
|
||||
ClassLogger.Add(String.Format(">> Could not create folder-part: {0} - Complete path is: ({1})", temppath, Zielordner.Substring(2)))
|
||||
ClassLogger.Add(String.Format(">> ErrorMessage: {0}: ", ex.Message))
|
||||
Return False
|
||||
End If
|
||||
End Try
|
||||
@@ -405,6 +417,10 @@ Public Class ClassImport_Windream
|
||||
Try
|
||||
'ungültige Zeichen entfernen
|
||||
DATEINAME = ClassHelper.CleanFilename(DATEINAME, "")
|
||||
If DATEINAME.Contains("/") Then
|
||||
ClassLogger.Add(String.Format(">> DATEINAME contains /-sign. / will be replaced with _"))
|
||||
DATEINAME = DATEINAME.Replace("/", "_")
|
||||
End If
|
||||
Catch ex As Exception
|
||||
ClassLogger.Add(" - Error in Versioning file - Error: " & vbNewLine & ex.Message)
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error in Versioning file:")
|
||||
|
||||
Reference in New Issue
Block a user