Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mandatory fields in node script #16

Open
lone-star opened this issue Jul 27, 2016 · 1 comment
Open

Mandatory fields in node script #16

lone-star opened this issue Jul 27, 2016 · 1 comment

Comments

@lone-star
Copy link
Contributor

TL;DR: When using in a node script, some options will be required, although they shouldn't be.

Explanation:

Script 1
Here is my script:

var options = {
    local_base: "base",
    remote_base: "http://localhost:1234/location",
    username: "admin",
    password: "admin",
}; 
var sync = webdavSync(options);  

When running I get:

■ [CONNECTION TEST]
/bin/sh: undefined: command not found

The program will exit as soon as there is a file to sync

Script 2
Here is my script:

var options = {
    local_base: "base",
    remote_base: "http://localhost:1234/location",
    username: "admin",
    password: "admin",
    curl: 'curl --insecure -s -S'
}; 
var sync = webdavSync(options);  

When running I get:

■ [CONNECTION TEST]

The program will exit as soon as there is a file to sync

.../lone-star/.../node_modules/webdav-sync/lib/webdav_sync.js:195
    return __indexOf.call(options.ignored, path) >= 0;

Script 3
Here is my script:

var options = {
    local_base: "base",
    remote_base: "http://localhost:1234/location",
    username: "admin",
    password: "admin",
    curl: 'curl --insecure -s -S',
    ignored: ''
}; 
var sync = webdavSync(options);  

When running I get:

■ [CONNECTION TEST]

The program will successfully sync.

@bensmoif
Copy link
Collaborator

You're saying that it seems some fields are required when they need not be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants