parameters: (self, rpath, lpath, recursive=False, **kwargs)
docstring: Copy file to local.
  
          Possible extension: maybe should be able to copy to any file-system
          (streaming through local).
docstring_summary: Copy file to local.
docstring_tokens: Copy file to local .
function: def get(self, rpath, lpath, recursive=False, **kwargs):
          """Copy file to local.
  
          Possible extension: maybe should be able to copy to any file-system
          (streaming through local).
          """
          rpath = self._strip_protocol(rpath)
          if recursive:
              rpaths = self.find(rpath)
              lpaths = [
                  os.path.join(lpath, path[len(rpath) :].lstrip("/")) for path in rpaths
              ]
              for lpath in lpaths:
                  dirname = os.path.dirname(lpath)
                  if not os.path.isdir(dirname):
                      os.makedirs(dirname)
          else:
              rpaths = [rpath]
              lpaths = [lpath]
          for lpath, rpath in zip(lpaths, rpaths):
              with self.open(rpath, "rb", **kwargs) as f1:
                  with open(lpath, "wb") as f2:
                      data = True
                      while data:
                          data = f1.read(self.blocksize)
                          f2.write(data)
function_tokens: def get ( self , rpath , lpath , recursive = False , * * kwargs ) : rpath = self . _strip_protocol ( rpath ) if recursive : rpaths = self . find ( rpath ) lpaths = [ os . path . join ( lpath , path [ len ( rpath ) : ] . lstrip ( "/" ) ) for path in rpaths ] for lpath in lpaths : dirname = os . path . dirname ( lpath ) if not os . path . isdir ( dirname ) : os . makedirs ( dirname ) else : rpaths = [ rpath ] lpaths = [ lpath ] for lpath , rpath in zip ( lpaths , rpaths ) : with self . open ( rpath , "rb" , * * kwargs ) as f1 : with open ( lpath , "wb" ) as f2 : data = True while data : data = f1 . read ( self . blocksize ) f2 . write ( data )