c9 / vfs-local

A VFS implementation for the local file-system.
MIT License
32 stars 39 forks source link

Doesn't work on windows #1

Open jukowski opened 12 years ago

jukowski commented 12 years ago

Hi,

since you do the check: if (root[0] !== "/") throw new Error("root path must start in /"); your library is not usable for windows users.

creationix commented 12 years ago

Yes, there used to be a lot of other unix specific permissions bits in there. I think now that we could add windows support pretty easily though. I'll take a patch that allows windows-style absolute paths as well.

jdinard commented 12 years ago

I cant believe this supports Azure but it doesn't support Windows! Lol

exsilium commented 9 years ago

Is this project dead? Still not working on windows, I bumped into an issue similar described in this stack overflow post: http://stackoverflow.com/questions/22007738/cloud9-error-with-opening-settings-file-on-windows.

The workaround is simple enough in resolvePath function to fix the issue

    // Workaround for double root (C:\C:\) issue on Windows
    if (path.indexOf(fsOptions.root + fsOptions.root) > -1) {
      path = path.substring(fsOptions.root.length);
    }

But a larger question is, are pull requests to this project still accepted or is this repo dead/abandoned?