private static async GetFolders()

in src/jsonLoader.ts [259:275]


    private static async GetFolders(github: GitHubApi, path: string, repo: string, type: SourceType, forceMicrosoftMasterSource?: boolean): Promise<string[]> {
        let owner: string = type !== SourceType.LocalizationStrings || forceMicrosoftMasterSource ? JsonLoader.microsoft : JsonLoader.pbicvbot;
        let ref: string = type !== SourceType.LocalizationStrings || forceMicrosoftMasterSource ? "heads/master" : "heads/locUpdate";

        return github.repos.getContent({
            owner: owner,
            path: path,
            repo: repo,
            ref: ref
        })
        .then((folders): string[] => {
            if (folders && folders.data.length && folders.data[0].name) {
                return folders.data.filter((x: any) => x.name != "en-US" && x.type === "dir").map((x: any) => x.name);
            } 
            return [];
        });
    }