Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-dixit committed Dec 14, 2024
1 parent ca083ed commit b2cbbdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/sdk/utils/fileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { COMPOSIO_DIR, TEMP_FILES_DIRECTORY_NAME } from "./constants";
* @param createDirIfNotExists - Whether to create the directory if it doesn't exist.
* @returns The path to the Composio directory.
*/
export const getComposioDir = (createDirIfNotExists: boolean = true) => {
export const getComposioDir = (createDirIfNotExists: boolean = false) => {
const composioDir = path.join(os.homedir(), COMPOSIO_DIR);
if (createDirIfNotExists && !fs.existsSync(composioDir)) {
fs.mkdirSync(composioDir, { recursive: true });
Expand All @@ -23,7 +23,7 @@ export const getComposioDir = (createDirIfNotExists: boolean = true) => {
* @returns The path to the Composio temporary files directory.
*/
export const getComposioTempFilesDir = (
createDirIfNotExists: boolean = true
createDirIfNotExists: boolean = false
) => {
const composioFilesDir = path.join(
os.homedir(),
Expand Down

0 comments on commit b2cbbdc

Please sign in to comment.