Review the GetUnzipFile sub-pipeline when scheduling inventory imports.
Unzip.ds
. This script unzips a file.Variable | Type | Comment |
---|---|---|
@input ZIPFileName
|
String
|
The file name of the .zip file |
@input
SourceDirectory
|
dw.io.File
|
The processing directory where the file is located |
@input importLogger
|
Object
|
import logger |
@output
UnzipDirectory
|
dw.io.File
|
The unzip directory where the extracted import file is located |
@output ZIPFile
|
dw.io.File
|
The .zip file |
@output importLogger
|
Object
|
import logger |
@output importError
|
Object
|
import error |
GetFilesFromDirectory.ds
. This script retrieves a file list from an FTP/HTTP(S)
server.
Variable | Type | Comment |
---|---|---|
@input Directory
|
dw.io.File
|
the directory to browse |
@input
SortDirection
|
String
|
'ASCENDING' or 'DESCENDING' |
@input
NamePattern
|
String
|
The pattern for the filenames (use ".*" to get all) |
@input
importLogger
|
Object import logger
|
input for import logger |
@output FileList
|
dw.util Collection
|
The files matching the pattern |
@output importLogger
|
Object import logger
|
debug output for import logger |
@output importError
|
Object import error
|
error output for import logger |
RenameFile.ds
.ZipFile.remove()
.
ImportFile =
UnzipFile.name
UnzipDirectory.remove()
.