MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / findNode

Method findNode

web/pgadmin/static/js/tree/tree_nodes.ts:53–58  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

51 };
52
53 findNode(path) {
54 if (path === null || path === undefined || path.length === 0 || path == '/browser') {
55 return this.tempTree;
56 }
57 return findInTree(this.tempTree, path);
58 }
59
60 public addNode = (_parent: string, _path: string, _data: []) => new Promise((res) => {
61 _data.type = _data.inode ? FileType.Directory : FileType.File;

Callers 1

ManageTreeNodesClass · 0.95

Calls 1

findInTreeFunction · 0.90

Tested by

no test coverage detected