Comments (9)
For the connected Client it should look something like this....
mountpoint (mounted drive in e.g. OSX finder)
----- root1
----- root2
----- root3
from jsdav.
This is not a tested code flow, but it should be possible: https://github.com/mikedeboer/jsDAV/blob/master/lib/DAV/server.js#L115
This uses https://github.com/mikedeboer/jsDAV/blob/master/lib/DAV/simpleCollection.js and that should work like you describe in your second comment.
If it doesn't work, please show me the terminal output and perhaps a screenshot of your client.
I'm curious 😉
from jsdav.
Ok. I will try in about an hour. But when I look at your provided link at line 119 a question came up: Does a tree (iTree) implements the iNode features? Probably this will throw an error. But I will check it out. THX
https://github.com/mikedeboer/jsDAV/blob/master/lib/DAV/server.js#L119
from jsdav.
And one more thing I am interested in asking you: how did you solve that node does not react to all http methods. When you make an console.log of
Var http = require("http");
Console.log(http.METHODS);
There are missing plenty of methods you defined in the cors.js.
How did you resolve this? I don't understand it. 🤓
from jsdav.
I didn't solve it, NodeJS is just not interested in following standards properly.
from jsdav.
Ah. Ok. Lol. During a discussion I had with a sails.js developer about exact that topic a pull request for the http parser was opened to implement in node http parser directly.
from jsdav.
But it could be resolved by creating a server based on "net" with a custom http parser instead of using "http" module.
But this might be a lot of work...
Net reacts to all requests
from jsdav.
@joeherold did you managed to find a solution for the multiple trees.
from jsdav.
I found a solution. I hope it helps someone else:
var jsDAV = require("jsDAV/lib/jsdav");
var jsDAV_Locks_Backend_FS = require("jsDAV/lib/DAV/plugins/locks/fs");
var jsDAV_FS_Directory = require("jsDAV/lib/DAV/backends/fs/directory")
jsDAV.createServer({
node: [jsDAV_FS_Directory.new('/folder1'), jsDAV_FS_Directory.new('/folder2')],
locksBackend: jsDAV_Locks_Backend_FS.new(__dirname + "/locks/files"),
}, 8000);
return Promise.resolve();
from jsdav.
Related Issues (20)
- jCal/jCard parsing HOT 1
- VObject/Property .hasFeature is not defined on String HOT 3
- Question: How to run server using HTTPS? HOT 1
- DavMount link dead HOT 1
- Unable to run inside Docker container HOT 1
- How to filter response sent to client?
- Tree insideSandbox doesn't account for immediate parent directory
- Regular Expression Denial of Service HOT 1
- Delete locks on DELETE method HOT 6
- Unterminated character class HOT 1
- Space in filename is not recognized HOT 4
- User management for jsDAV
- How jsDAV callbacks work
- carddav
- jsDAV - Unsupported method
- Can you support hooks?
- Upgrade moment to 2.11.2 - CVE-2016-4055
- CalDAV Backend? HOT 2
- New webdav client
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsdav.