Changes between Version 1 and Version 2 of pyFilesystem


Ignore:
Timestamp:
2011-10-25T06:20:19Z (9 years ago)
Author:
ClashTheBunny
Comment:

add mountPoint variable

Legend:

Unmodified
Added
Removed
Modified
  • pyFilesystem

    v1 v2  
    4040
    4141URI='URI:DIR2:ctmtx2awdo4xt77x5xxaz6nyxm:n5t546ddvd6xlv4v6se6sjympbdbvo7orwizuzl42urm73sxazqa'
     42mountPoint='f'               #Windows with dokan
     43# mountPoint='/mnt/tahoe'    #Linux with FUSE
    4244
    4345import time
     
    4749        from fs.expose import dokan
    4850        fs = TahoeLAFS(URI)
    49         mp = dokan.mount(fs, "f")
     51        mp = dokan.mount(fs, mountPoint)
    5052
    5153except:
    5254        from fs.expose import fuse
    5355        fs = TahoeLAFS(URI)
    54         mp = fuse.mount(fs, "/mnt/tahoe")
     56        mp = fuse.mount(fs, mountPoint)
    5557}}}
    5658
    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.
     59Replace 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.
    5960
    6061Run 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.