MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-workbench / updateCurrentPath

Function updateCurrentPath

src/contexts/dbContext.tsx:111–114  ·  view source on GitHub ↗
(path: string, pathType: PathType)

Source from the content-addressed store, hash-verified

109 const [currentPathType, setCurrentPathType] = useState<PathType>("directory");
110
111 function updateCurrentPath(path: string, pathType: PathType) {
112 setCurrentPath(path);
113 setCurrentPathType(pathType);
114 }
115
116 function changeRouteOnImport() {
117 navigate(DEFAULT_ROUTE_ON_IMPORT);

Callers 4

FileTreeFunction · 0.85
goToFileInTableViewFunction · 0.85
sqliteParserFunction · 0.85
jsonParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected