docs: def export(self, directory):
          """Export exportable resources decoding as needed"""
          if not self.existing or not hasattr(self, 'filename'):
              return
  
          secret_h = self.export_handle(directory)
          obj = self.existing
          if isinstance(obj, str):
              secret_h.write(obj)
          elif isinstance(obj, dict):
              secret_h.write(yaml.safe_dump(obj))