We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25c08b commit 2046a9aCopy full SHA for 2046a9a
src/shared/orgListUtil.ts
@@ -129,6 +129,10 @@ export class OrgListUtil {
129
* @param fileNames All the filenames in the global hidden folder
130
*/
131
public static async readAuthFiles(fileNames: string[]): Promise<AuthInfo[]> {
132
+ // Ensure that the Global.SFDX_DIR exists
133
+ // https://github.com/forcedotcom/cli/issues/2222
134
+ await fs.mkdir(Global.SFDX_DIR, { recursive: true });
135
+
136
const orgFileNames = (await fs.readdir(Global.SFDX_DIR)).filter((filename: string) =>
137
filename.match(/^00D.{15}\.json$/g)
138
);
0 commit comments