MCPcopy Index your code
hub / github.com/serverless/serverless / getPathDirectory

Function getPathDirectory

packages/sf-core/src/utils/https/index.js:19–24  ·  view source on GitHub ↗
(length, parts)

Source from the content-addressed store, hash-verified

17 * @returns The directory path
18 */
19const getPathDirectory = (length, parts) => {
20 if (!parts) {
21 return ''
22 }
23 return parts.slice(length).filter(Boolean).join(path.sep)
24}
25
26/**
27 * Validates URL

Callers 4

parseGitHubURLFunction · 0.85
parseBitbucketURLFunction · 0.85
parseBitbucketServerURLFunction · 0.85
parseGitlabURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…