mise API - v0.0.0
    Preparing search index...

    Function path_findLatestDircopy

    • Finds the highest version of pl-dircopy in a bin listing.

      If multiple pl-dircopy versions exist (e.g., pl-dircopy-v1.0.0, pl-dircopy-v2.1.0), returns the one with the highest version number.

      Parameters

      • binListing: string[]

        Array of plugin names from /bin directory.

      Returns string | null

      The full name of the latest pl-dircopy plugin, or null if not found.

      const plugins = ['pl-dircopy-v1.0.0', 'pl-dircopy-v2.1.0', 'pl-other-v1.0.0'];
      path_findLatestDircopy(plugins);
      // Returns: 'pl-dircopy-v2.1.0'