MCPcopy
hub / github.com/UdaraJay/Pile / getCurrentPilePath

Function getCurrentPilePath

src/renderer/context/PilesContext.js:60–65  ·  view source on GitHub ↗
(appendPath = '')

Source from the content-addressed store, hash-verified

58 };
59
60 const getCurrentPilePath = (appendPath = '') => {
61 if (!currentPile) return;
62 const pile = piles.find((p) => p.name == currentPile.name);
63 const path = window.electron.joinPath(pile.path, appendPath);
64 return path;
65 };
66
67 const writeConfig = async (piles) => {
68 if (!piles) return;

Callers 11

renderRepliesFunction · 0.85
AttachmentsFunction · 0.85
TagsContextProviderFunction · 0.85
IndexContextProviderFunction · 0.85
LinksContextProviderFunction · 0.85
usePostFunction · 0.85
addReplyToParentFunction · 0.85
useThreadFunction · 0.85
attachToPostCreatorFunction · 0.85
detachFromPostCreatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected