MCPcopy Index your code
hub / github.com/continuedev/continue / setConfigFilePermissions

Function setConfigFilePermissions

core/util/paths.ts:17–25  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

15dotenv.config();
16
17export function setConfigFilePermissions(filePath: string): void {
18 try {
19 if (os.platform() !== "win32") {
20 fs.chmodSync(filePath, 0o600);
21 }
22 } catch (error) {
23 console.warn(`Failed to set permissions on ${filePath}:`, error);
24 }
25}
26
27const CONTINUE_GLOBAL_DIR = (() => {
28 const configPath = process.env.CONTINUE_GLOBAL_DIR;

Callers 4

getCommandsMapFunction · 0.90
getConfigYamlPathFunction · 0.85
editConfigYamlFunction · 0.85
createOrUpdateConfigFunction · 0.85

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected