diff --git a/pyFilesystem.md b/pyFilesystem.md index 170e666..c846a34 100644 --- a/pyFilesystem.md +++ b/pyFilesystem.md @@ -38,6 +38,8 @@ Then you can edit this script: ```/usr/bin/env python URI='URI:DIR2:ctmtx2awdo4xt77x5xxaz6nyxm:n5t546ddvd6xlv4v6se6sjympbdbvo7orwizuzl42urm73sxazqa' +mountPoint='f' #Windows with dokan +# mountPoint='/mnt/tahoe' #Linux with FUSE import time from fs.contrib.tahoelafs import TahoeLAFS @@ -45,15 +47,14 @@ from fs.contrib.tahoelafs import TahoeLAFS try: from fs.expose import dokan fs = TahoeLAFS(URI) - mp = dokan.mount(fs, "f") + mp = dokan.mount(fs, mountPoint) except: from fs.expose import fuse fs = TahoeLAFS(URI) - mp = fuse.mount(fs, "/mnt/tahoe") + mp = fuse.mount(fs, mountPoint) ``` -Replace URI with your URI on your grid. The above URI is the test writable URI in the [TestGrid](TestGrid). Replace the "f" in -`mp = dokan.mount(fs, "f")` with the Windows drive letter you want to use or replace the "/mnt/tahoe" in `mp = fuse.mount(fs, "/mnt/tahoe")` with the fuse mount point on, I think, all other systems. +Replace URI with your URI on your grid. The above URI is the test writable URI in the [TestGrid](TestGrid). Replace the mountPoint variable with the Windows drive letter or the UNIX filesystem path for the fuse mount point on all other systems. Run the script and it will mount the URI at the specified location. If you want to unmount it, find out where dokanctl.exe is and run it from the command line `dokanctl.exe /u f:`. Sometimes I have to force the unmount on Windows. Use `fusermount -u /mnt/tahoe` on the FUSE systems. \ No newline at end of file