def makeFolders(self):
        try:
            # Create these folder on all instances
            mkdir = '/bin/mkdir'
            chown = '/bin/chown'
            self.run([mkdir, '-p', self.configFolder])
            self.run([mkdir, '-p', self.certFolder])
            self.run([mkdir, '-p', self.outputFolder])

            if self.installOxTrust | self.installOxAuth:
                self.run([mkdir, '-p', self.gluuOptFolder])
                self.run([mkdir, '-p', self.gluuOptBinFolder])
                self.run([mkdir, '-p', self.tomcat_user_home_lib])
                self.run([mkdir, '-p', self.oxPhotosFolder])
                self.run([mkdir, '-p', self.oxTrustRemovedFolder])
                self.run([mkdir, '-p', self.oxTrustCacheRefreshFolder])

                # Customizations folders
                self.run([mkdir, '-p', self.oxCustomizationFolder])
                self.run([mkdir, '-p', "%s/oxauth" % self.oxCustomizationFolder])
                self.run([mkdir, '-p', "%s/oxauth/libs" % self.oxCustomizationFolder])
                self.run([mkdir, '-p', "%s/oxauth/pages" % self.oxCustomizationFolder])
                self.run([mkdir, '-p', "%s/oxauth/resources" % self.oxCustomizationFolder])

                self.run([mkdir, '-p', "%s/oxtrust" % self.oxCustomizationFolder])
                self.run([mkdir, '-p', "%s/oxtrust/libs" % self.oxCustomizationFolder])
                self.run([mkdir, '-p', "%s/oxtrust/pages" % self.oxCustomizationFolder])
                self.run([mkdir, '-p', "%s/oxtrust/resources" % self.oxCustomizationFolder])

                self.run([chown, '-R', 'tomcat:tomcat', self.oxCustomizationFolder])

            if self.installSaml:
                self.run([mkdir, '-p', self.idpFolder])
                self.run([mkdir, '-p', self.idpMetadataFolder])
                self.run([mkdir, '-p', self.idpLogsFolder])
                self.run([mkdir, '-p', self.idpLibFolder])
                self.run([mkdir, '-p', self.idpConfFolder])
                self.run([mkdir, '-p', self.idpSslFolder])
                self.run([mkdir, '-p', self.idpTempMetadataFolder])
                self.run([mkdir, '-p', self.idpWarFolder])
                self.run([mkdir, '-p', self.idpSPFolder])
                self.run([chown, '-R', 'tomcat:tomcat', self.idpFolder])
        except:
            self.logIt("Error making folders", True)
            self.logIt(traceback.format_exc(), True)
dataset/ETHPy150Open GluuFederation/community-edition-setup/setup.py/Setup.makeFolders/original