mirror of
https://github.com/fuse-friends/fuse-native
synced 2024-10-27 18:34:01 +00:00
added Windows instructions to readme
This commit is contained in:
parent
e351388783
commit
b8a3e44d47
@ -11,10 +11,16 @@ any buffer copys in read/write. It also supports unmount and mouting of multiple
|
||||
|
||||
## Requirements
|
||||
|
||||
You need to have FUSE installed
|
||||
You need to have FUSE installed (or Dokany on Windows)
|
||||
|
||||
* On Linux/Ubuntu `sudo apt-get install libfuse-dev`
|
||||
* On OSX install [OSXFuse](http://osxfuse.github.com/) and pkg-config, `brew install pkg-config`
|
||||
* On Windows see `Windows` down below...
|
||||
|
||||
### Windows
|
||||
Using this on Windows is slightly more complicated. You need to install [Dokany](https://github.com/dokan-dev/dokany) (for `dokanfuse.lib`, `dokanctl.exe`, driver and service) **and** clone its repo (for the headers).
|
||||
|
||||
Once the Dokany repo is cloned, you also need to set environment variable `DOKAN_FUSE_INCLUDE` to the path to `*dokany repo*\dokan_fuse\include`.
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -37,11 +37,9 @@ void thread_join (HANDLE thread) {
|
||||
WaitForSingleObject(thread, INFINITE);
|
||||
}
|
||||
|
||||
#include <iostream>
|
||||
|
||||
void fusermount (char *path) {
|
||||
char cmdLine[MAX_PATH];
|
||||
sprintf(cmdLine, "dokanctl.exe /u %s", path);
|
||||
sprintf(cmdLine, "\"C:\\Program Files\\Dokan\\DokanLibrary\\dokanctl.exe\" /u %s", path);
|
||||
|
||||
STARTUPINFO info = {sizeof(info)};
|
||||
PROCESS_INFORMATION procInfo;
|
||||
|
Loading…
Reference in New Issue
Block a user