def make_subj(self, subject):
        if os.path.exists(os.path.join(self.filestore, subject)):
            if raw_input("Are you sure you want to overwrite this existing subject? Type YES\n") == "YES":
                shutil.rmtree(os.path.join(self.filestore, subject))

        for dirname in ['transforms', 'anatomicals', 'cache', 'surfaces', 'surface-info','views']:
            try:
                path = os.path.join(self.filestore, subject, dirname)
                os.makedirs(path)
            except __HOLE__:
                print("Error making directory %s"%path)
dataset/ETHPy150Open gallantlab/pycortex/cortex/database.py/Database.make_subj