|
@@ -78,15 +78,15 @@ class labkeyURIHandler(slicer.vtkURIHandler):
|
|
raise
|
|
raise
|
|
local=open(dest,'wb')
|
|
local=open(dest,'wb')
|
|
#make sure we are at the begining of the file
|
|
#make sure we are at the begining of the file
|
|
-
|
|
|
|
- #check file size
|
|
|
|
- remote.seek(0,2)
|
|
|
|
- sz=remote.tell()
|
|
|
|
- print "Remote size: {0}".format(sz)
|
|
|
|
-
|
|
|
|
- remote.seek(0)
|
|
|
|
|
|
+
|
|
|
|
+ #check file size
|
|
|
|
+ remote.seek(0,2)
|
|
|
|
+ sz=remote.tell()
|
|
|
|
+ print "Remote size: {0}".format(sz)
|
|
|
|
+
|
|
|
|
+ remote.seek(0)
|
|
shutil.copyfileobj(remote,local)
|
|
shutil.copyfileobj(remote,local)
|
|
- print "Local size: {0}".format(local.tell())
|
|
|
|
|
|
+ print "Local size: {0}".format(local.tell())
|
|
local.close()
|
|
local.close()
|
|
|
|
|
|
def StageFileWrite(self,source,dest):
|
|
def StageFileWrite(self,source,dest):
|