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

Is recursive folders sync supported? #18

Open
f1nnix opened this issue Dec 5, 2016 · 0 comments
Open

Is recursive folders sync supported? #18

f1nnix opened this issue Dec 5, 2016 · 0 comments

Comments

@f1nnix
Copy link

f1nnix commented Dec 5, 2016

Hi, thanks for building webdav-sync. It seems for current NPM version recursive sync is not working for me. Test case.

  1. Create nested folder:

     ➜  Desktop mkdir folder0
     ➜  Desktop mkdir folder0/subfolder{0,1,2}
     ➜  Desktop touch folder0/subfolder{0,1,2}/file{0,1,2}
     ➜  Desktop tree folder0
     folder0
     ├── subfolder0
     │   ├── file0
     │   ├── file1
     │   └── file2
     ├── subfolder1
     │   ├── file0
     │   ├── file1
     │   └── file2
     └── subfolder2
         ├── file0
         ├── file1
         └── file2
    
  2. Move folder to syncable dir:

     ➜  Desktop ls ~/files/
     ➜  Desktop mv folder0 ~/files
     ■ [created] /folder0
     Mon Dec 05 2016 12:15:02 GMT+0300 (MSK)
     curl --insecure -s -S -u [email protected]:password -X MKCOL "https://server.com/folder0"  --verbose
     *   Trying 127.0.0.1...
     * Connected to server.com (127.0.0.1) port 443 (#0)
     * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
     * Server certificate: *.server.com
     * Server certificate: DigiCert SHA2 Secure Server CA
     * Server certificate: DigiCert Global Root CA
     * Server auth using Basic with user '[email protected]'
     > MKCOL /folder0 HTTP/1.1
     > Host: server.com
     > Authorization: Basic xxxxxx====
     > User-Agent: curl/7.49.1
     > Accept: */*
     >
     < HTTP/1.1 201 Created
     < Server: nginx
     < Date: Mon, 05 Dec 2016 09:15:03 GMT
     < Content-Type: application/octet-stream
     < Content-Length: 0
     < Connection: keep-alive
     < X-Request-Id: web6-3359141-1480929302-39
     < X-Request-Id: web6-3359141-1480929302-40
     < Location: https://server.com/folder0
     < Pragma: no-cache
     < Cache-Control: no-cache
     < X-Frontend: frontend2
     < X-UA-Compatible: IE=edge,chrome=1
     <
     * Connection #0 to host server.com left intact
    
  3. Listing remote directory:

     ➜  Desktop tree /Volumes/server.com/folder0
     /Volumes/server.com/folder0
    
     0 directories, 0 files
    

¯_(ツ)_/¯

macOS 10.12, webdav-sync 0.5.0

Thanks!

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

1 participant