Git Product home page Git Product logo

camel.js's People

Contributors

gitter-badger avatar matthewwilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

camel.js's Issues

URI Option: fileFilter

Name Default
fileFilter null

For the consumer, you can use it to filter filenames. So for example if you only want to consume text files you could set the value to "*.txt"

I don't think this would be needed for a producer?

URI Option: idempotent

Consumer Only

Name Default
idempotent false

Use idempotent to skip files that have already been processed.

URI Option: moveFailed

Consumer Only

Name Default
moveFailed null

If an error occurs while processing a file move it to this directory. For example, to move files into a .error subdirectory use: .error.

URI Option: fileExists

Producer Only

Name Default
fileExists override

What to do if a file already exists with the same name. The following values can be specified: Override, Append, Fail

URI Option: initialDelay

Consumer Only

Name Default
initialDelay 0

Milliseconds before polling the file/directory starts.

URI Option: recursive

Consumer Only

Name Default
recursive false

If a directory, will look for files in all the sub-directories as well.

URI Option: pollInterval

Consumer Only

Name Default
pollInterval 0

If this value is greater than 0, the specified directory will be polled at this interval.

URI Option: preMove

Consumer Only

Name Default
preMove null

Directory path to move files into during processing, For example to move in-progress files into the order directory set this value to order.

URI Option: move

Consumer Only

Name Default
move null

Set this to the directory path you want files to be moved to if after processing. For example to move files into a .done subdirectory just enter .done.

URI Option: exclusionFileFilter

Consumer Only

Name Default
exclusionFileFilter null

For the consumer, you can use it to filter and exclude filenames. So for example if you dont want to consume text files you could set the value to "*.txt"

URI Option: delay

Consumer Only

Name Default
delay 0

Milliseconds before the next poll of the file/directory.

URI Option: autoCreate

Name Default
autoCreate true

Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to.

Node's fs.readFile and fs.writeFile might do this already, need to confirm.

URI Option: delete

Consumer Only

Name Default
delete false

If true, the file will be deleted after it is processed successfully.

Specify Directory in to endpoint

We can currently read files from a directory but can only write to a single file. We need to be able to specify a to directory as well.

URI Option: watch

Consumer Only

Name Default
watch false

If true we will watch the specified directory and process any new files that are added.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.