code: def deploy_file(self,
                      file_name,
                      calc_md5=True,
                      calc_sha1=True,
                      parameters={}):
          
          if calc_md5:
              md5 = md5sum(file_name)
          if calc_sha1:
              sha1 = sha1sum(file_name)
  
          target = self
  
          if self.is_dir():
              target = self / pathlib.Path(file_name).name
  
          with open(file_name, 'rb') as fobj:
              target.deploy(fobj, md5, sha1, parameters)
docs: Upload the given file to this path