mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
tahoe-get.py: the first, most primitive command-line client
This commit is contained in:
parent
dce1dc2730
commit
8769f2eeba
15
src/allmydata/scripts/tahoe-get.py
Normal file
15
src/allmydata/scripts/tahoe-get.py
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys, urllib
|
||||
|
||||
def GET(url):
|
||||
f = urllib.urlopen(url)
|
||||
sys.stdout.write(f.read())
|
||||
|
||||
vfname = sys.argv[1]
|
||||
|
||||
base = "http://tahoebs1.allmydata.com:8011/"
|
||||
base += "vdrive/global/"
|
||||
url = base + vfname
|
||||
|
||||
GET(url)
|
Loading…
Reference in New Issue
Block a user