parameters: (pattern)
return_statement: return list(filter(match, os.listdir(path)))
docstring: Return a list of HDF5 files matching the given file name pattern.
  
      For example, "./sim/kratos" matches:
      - ./sim/kratos.h5
      - ./sim/kratos-0.0000.h5
      - ./sim/kratos-0.2000.h5
      - etc.
docstring_summary: Return a list of HDF5 files matching the given file name pattern.
docstring_tokens: Return a list of HDF5 files matching the given file name pattern .
function: def FindMatchingFiles(pattern):
      """Return a list of HDF5 files matching the given file name pattern.
  
      For example, "./sim/kratos" matches:
      - ./sim/kratos.h5
      - ./sim/kratos-0.0000.h5
      - ./sim/kratos-0.2000.h5
      - etc.
      """
      path, _ = os.path.split(pattern)
      if path == "":
          path = "."  # os.listdir fails with empty path
      def match(s): return s.startswith(pattern) and s.endswith(".h5")
      return list(filter(match, os.listdir(path)))
function_tokens: def FindMatchingFiles ( pattern ) : path , _ = os . path . split ( pattern ) if path == "" : path = "." # os.listdir fails with empty path def match ( s ) : return s . startswith ( pattern ) and s . endswith ( ".h5" ) return list ( filter ( match , os . listdir ( path ) ) )