code: def _safe_path(filepath, can_be_cwl=False):
      
      # Should not be in ignore paths.
      if filepath in {'.gitignore', '.gitattributes'}:
          return False
  
      # Ignore everything in .renku ...
      if filepath.startswith('.renku'):
          # ... unless it can be a CWL.
          if can_be_cwl and filepath.endswith('.cwl'):
              return True
          return False
  
      return True
docs: Check if the path should be used in output.