Function gitIgnorePath

  • Creates pattern containing a file or directory path relative to root directory.

    Parameters

    • rootDir: string

      Root directory.

    • filePath: string

      Path to target file or directory.

    Returns string

    Path pattern starting with /.