System.IO, Zugferd, Dakosy-Import Firma gesetzt durch Division1
This commit is contained in:
@@ -846,17 +846,17 @@ Public Class cUTA
|
||||
SERVERPath = Me.FTP_PFAD
|
||||
|
||||
Dim catchedFiles As Boolean = False
|
||||
For Each f In IO.Directory.GetFiles(SERVERPath)
|
||||
Dim fi As New IO.FileInfo(f)
|
||||
For Each f In System.IO.Directory.GetFiles(SERVERPath)
|
||||
Dim fi As New System.IO.FileInfo(f)
|
||||
If fi.Name.ToUpper.Contains(fileType) Then
|
||||
If Not fi.Name.StartsWith(".") Then
|
||||
Dim zielPfad = VERARBEITUNG_PFAD & "\" & fi.Name
|
||||
While IO.File.Exists(zielPfad)
|
||||
While System.IO.File.Exists(zielPfad)
|
||||
zielPfad = VERARBEITUNG_PFAD & "\" & "DOPPELT" & "\" & fi.Name.Replace(fi.Extension, "") & fi.Extension & Now.ToString("_yyyyMMdd_HHmmss")
|
||||
End While
|
||||
IO.File.Copy(f, zielPfad)
|
||||
If IO.File.Exists(zielPfad) Then
|
||||
IO.File.Delete(f)
|
||||
System.IO.File.Copy(f, zielPfad)
|
||||
If System.IO.File.Exists(zielPfad) Then
|
||||
System.IO.File.Delete(f)
|
||||
catchedFiles = True
|
||||
End If
|
||||
|
||||
@@ -1244,7 +1244,9 @@ Public Class cUTA
|
||||
ARCHIV_PFAD = cUTA.Paramter.GET_PARAM_ByName("ARCHIV_PFAD", VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM)
|
||||
VERARBEITUNG_PFAD = cUTA.Paramter.GET_PARAM_ByName("VERARBEITUNGS_PFAD", VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM)
|
||||
ZIEL_PFAD = cUTA.Paramter.GET_PARAM_ByName("ZIEL_PFAD", VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM)
|
||||
If Not IO.Directory.Exists(VERARBEITUNG_PFAD) Then IO.Directory.CreateDirectory(VERARBEITUNG_PFAD)
|
||||
If Not System.IO.Directory.Exists(VERARBEITUNG_PFAD) Then
|
||||
System.IO.Directory.CreateDirectory(VERARBEITUNG_PFAD)
|
||||
End If
|
||||
|
||||
Return Paramter.getFTPConenction(API_STRING, API, programName)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user