code: def filepath(self):
          
          if hasattr(self, 'local_path'):
              return self.local_path
  
          if self.scheme in ['ftp', 'http', 'https', 'globus']:
              return self.filename
          elif self.scheme in ['file']:
              return self.path
          else:
              raise Exception('Cannot return filepath for unknown scheme {}'.format(self.scheme))
docs: Return the resolved filepath on the side where it is called from.
  
          The appropriate filepath will be returned when called from within
          an app running remotely as well as regular python on the client side.
  
          Args:
              - self
          Returns:
               - filepath (string)