jsDAV icon indicating copy to clipboard operation
jsDAV copied to clipboard

How jsDAV callbacks work

Open birbird opened this issue 7 years ago • 0 comments

Hi

I am new to jsDAV, and is taking over a project used jsDAV. Currently I want understand the work flow of jsDAV, specially how those callbacks work. I didn't find the answer in wiki, then ask here, hope it will not disturb.

Take jsDAV/lib/DAV/backends/fs/file.js for example. It uses callbacks like cbfsput, cbfsfileget, cbfsfiledel, etc heavily, the same situation in the project I am working on.

But I don't know where those callbacks come from. Does jsDAV define them? and where? And who calls those API and passes the callback parameter, where is the code?

Any help will be highly appreciated.

birbird avatar Mar 13 '17 04:03 birbird