Skip to main content

comparePaths

@webda/oci


Function: comparePaths()

comparePaths(a, b): number

Defined in: packages/oci/src/tar.ts:150

Compare two posix paths component by component, so a directory comes right before its content

Parameters​

a​

string

first path

b​

string

second path

Returns​

number

the sort order