|
@@ -136,6 +136,15 @@ class labkeyURIHandler(slicer.vtkURIHandler):
|
|
#make sure we are at the begining of the file
|
|
#make sure we are at the begining of the file
|
|
|
|
|
|
#check file size
|
|
#check file size
|
|
|
|
+<<<<<<< HEAD
|
|
|
|
+ remote.seek(0,2)
|
|
|
|
+ sz=remote.tell()
|
|
|
|
+ print "Remote size: {0}".format(sz)
|
|
|
|
+
|
|
|
|
+ remote.seek(0)
|
|
|
|
+ shutil.copyfileobj(remote,local)
|
|
|
|
+ print "Local size: {0}".format(local.tell())
|
|
|
|
+=======
|
|
if debug:
|
|
if debug:
|
|
remote.seek(0,2)
|
|
remote.seek(0,2)
|
|
sz=remote.tell()
|
|
sz=remote.tell()
|
|
@@ -145,6 +154,7 @@ class labkeyURIHandler(slicer.vtkURIHandler):
|
|
shutil.copyfileobj(remote,local)
|
|
shutil.copyfileobj(remote,local)
|
|
if debug:
|
|
if debug:
|
|
print("Local size: {0}").format(local.tell())
|
|
print("Local size: {0}").format(local.tell())
|
|
|
|
+>>>>>>> 7212758e9e58c9afa6f1d2a0b25eaef3d0a6ad64
|
|
local.close()
|
|
local.close()
|
|
|
|
|
|
def StageFileWrite(self,source,dest):
|
|
def StageFileWrite(self,source,dest):
|