MCPcopy Index your code
hub / github.com/VSpaceCode/VSpaceCode / getDirectoryPath

Function getDirectoryPath

src/pathCommands.ts:34–37  ·  view source on GitHub ↗
(activeEditor: TextEditor)

Source from the content-addressed store, hash-verified

32}
33
34export function getDirectoryPath(activeEditor: TextEditor) {
35 const active = _getPath(activeEditor, false);
36 return dirname(active.fsPath, active.path);
37}
38
39export function getRelativePath(activeEditor: TextEditor) {
40 return _getPath(activeEditor, true).fsPath;

Callers

nothing calls this directly

Calls 2

_getPathFunction · 0.85
dirnameFunction · 0.85

Tested by

no test coverage detected