11-08-2023
This commit is contained in:
@@ -53,8 +53,14 @@ Namespace slt
|
||||
AddInfoEntry("Document: [{0}]", oDocument.Name)
|
||||
Logger.Info("ExtDocId: [{0}]", oDocument.ExtDocId)
|
||||
|
||||
Dim oFileName = GetFilenameWithExtension(oDocument.Name, oDocument.DocMimeType)
|
||||
Dim oFilePath = Path.Combine(Config.OutputDirectory, oFileName)
|
||||
Dim oDocumentName = GetFilenameWithExtension(oDocument.Name, oDocument.DocMimeType)
|
||||
Dim oFileName = ConvertFilenameToSlug(oDocumentName)
|
||||
Dim oSubPath = FileEx.CreateDateDirectory(Config.OutputDirectory)
|
||||
If oSubPath Is Nothing Then
|
||||
Throw New ApplicationException("Output sub path could not be created!")
|
||||
End If
|
||||
Dim oFilePath = Path.Combine(oSubPath, oFileName)
|
||||
Logger.Debug("Subdirectory [{0}] created.", oSubPath)
|
||||
|
||||
If CopyFileToOutputPath(oDocument.Data, oFilePath) = False Then
|
||||
Throw New ApplicationException("File could not be created in output path!")
|
||||
|
||||
Reference in New Issue
Block a user