MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / getBaseFilename

Function getBaseFilename

src/packFileSerializer.ts:3236–3239  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

3234};
3235// Helper function to extract the base filename from a packed file path
3236const getBaseFilename = (filePath: string): string => {
3237 const parts = filePath.split("\\");
3238 return parts[parts.length - 1];
3239};
3240// Helper function to replace the base filename in a packed file path
3241const replaceBaseFilename = (filePath: string, newBasename: string): string => {
3242 const parts = filePath.split("\\");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected