MCPcopy Create free account
hub / github.com/cocos/cocos-engine / normalizePath

Function normalizePath

scripts/build-adapter.js:88–90  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

86}
87
88function normalizePath (path) {
89 return path.replace(/\\/g, '/');
90}
91
92/**
93 * Create bundle task

Callers 8

bundleNativeAdapterFunction · 0.70
bundleMinigameAdapterFunction · 0.70
bundleRuntimeAdapterFunction · 0.70
fullPathForFilenameMethod · 0.50
isFileExistMethod · 0.50
isDirectoryExistMethod · 0.50
getFileDirMethod · 0.50

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected