MCPcopy Create free account
hub / github.com/bitwarden/clients / resolveFilePath

Method resolveFilePath

apps/cli/src/utils.ts:38–44  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

36 }
37
38 private static resolveFilePath(input: string): string {
39 if (input == null || input === "") {
40 throw new Error("You must specify a file path.");
41 }
42 const osInput = path.join(input);
43 return osInput.indexOf(path.sep) === -1 ? path.join(process.cwd(), osInput) : osInput;
44 }
45
46 private static readFileBuffer(input: string): Promise<Buffer> {
47 return new Promise<Buffer>((resolve, reject) => {

Callers 1

readFileBufferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected