MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getTerminalPaths

Function getTerminalPaths

src/lib/openFolder.js:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 isTermuxSafUri(value) || isAcodeTerminalPublicSafUri(value);
30
31const getTerminalPaths = () => {
32 const packageName = window.BuildInfo?.packageName || "com.foxdebug.acode";
33 const dataDir = `/data/user/0/${packageName}`;
34 const alpineRoot = `${dataDir}/files/alpine`;
35 const publicDir = `${dataDir}/files/public`;
36 return { alpineRoot, publicDir, dataDir };
37};
38
39const isTerminalAccessiblePath = (url = "") => {
40 if (isAcodeTerminalPublicSafUri(url)) return true;

Callers 2

isTerminalAccessiblePathFunction · 0.85
convertToProotPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected