process the new files only

后端 未结 3 1889
谎友^
谎友^ 2021-01-27 15:03

I have a source from which the files are to be processed. Multiple files are coming to that loacation at any time randomly (Package should run every 2 hours). I have to process

3条回答
  •  佛祖请我去吃肉
    2021-01-27 15:31

    Your package should process the files in a given directory, then move them to another directory once processed. That way, each time the package runs, it has to fully process the source directory.

    To process each files in a directory, use the ForEach Container. You can specify a folder to look in, and some expressions to filter. If, for instance, your filename contains a timestamp, you could use that timestamp to filter your files in or out.

    You use a flat file source to read files, then use the filesystem task to move them around.

提交回复
热议问题