Ask HN: What do you think about mounting a file system over a WebSocket?
Interesting idea. Use Websocket to mount a remote file system. The system must be running some daemon.
But what does it mean to "mount" a filesystem to a webpage?
Does the webpage have access to those files? Yes.
But then what's the difference of running a HTTP server?
Hmm....Commands over websocket, programmatic access via script, authentication inline.
I like the idea...it seems interesting.
What do you think? Would this be useful or interesting to you?
Some possibly related prior art:
- https://www.npmjs.com/package/websocket-stream
- http://lukas.pokorny.eu/sftp-over-websockets/
Background:
I just used SCP for the first time to copy a file between two SSH sessions happening in browser windows, and I made the above note to myself. I didn't know more about it so I thought I'd ask here and see if anyone has any useful thoughts.
6 comments
[ 4.0 ms ] story [ 23.0 ms ] threadI love that it's part of standards tracks.
There's npm and python modules. Some JS clients for browser.
I think I came across WebDAV a long time ago, and I didn't know what it was or think it was relevant then. But now I see. I doubt I would have made the connection so quickly if it hadn't been for your comment.