Changes between Version 1 and Version 2 of pyFilesystem
- Timestamp:
- 2011-10-25T06:20:19Z (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pyFilesystem
v1 v2 40 40 41 41 URI='URI:DIR2:ctmtx2awdo4xt77x5xxaz6nyxm:n5t546ddvd6xlv4v6se6sjympbdbvo7orwizuzl42urm73sxazqa' 42 mountPoint='f' #Windows with dokan 43 # mountPoint='/mnt/tahoe' #Linux with FUSE 42 44 43 45 import time … … 47 49 from fs.expose import dokan 48 50 fs = TahoeLAFS(URI) 49 mp = dokan.mount(fs, "f")51 mp = dokan.mount(fs, mountPoint) 50 52 51 53 except: 52 54 from fs.expose import fuse 53 55 fs = TahoeLAFS(URI) 54 mp = fuse.mount(fs, "/mnt/tahoe")56 mp = fuse.mount(fs, mountPoint) 55 57 }}} 56 58 57 Replace URI with your URI on your grid. The above URI is the test writable URI in the TestGrid. Replace the "f" in 58 `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. 59 Replace URI with your URI on your grid. The above URI is the test writable URI in the TestGrid. Replace the mountPoint variable with the Windows drive letter or the UNIX filesystem path for the fuse mount point on all other systems. 59 60 60 61 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.