Did I find the right examples for you? yes no

All Samples(23)  |  Call(23)  |  Derive(0)  |  Import(0)
my own version of makedir 

        def makedirs(a_path):
    """ my own version of makedir """
    
    if os.path.isdir(a_path):
        # it already exists so return
        return
    elif os.path.isfile(a_path):
        raise OSError("a file with the same name as the desired dir, '%s', already exists."%(a_path))

    os.makedirs(a_path)
        


src/g/m/gmvault-HEAD/src/gmv/gmvault_db.py   gmvault(Download)
            LOG.critical("No Storage DB in %s. Create it.\n" % (a_storage_dir))
 
        gmvault_utils.makedirs(self._db_dir)
        gmvault_utils.makedirs(self._chats_dir)
        gmvault_utils.makedirs(self._quarantine_dir)
        gmvault_utils.makedirs(self._info_dir)
                self._sub_chats_inc = 1
                self._sub_chats_dir = self.SUB_CHAT_AREA % ("subchats-%s" % (self._sub_chats_inc))
                gmvault_utils.makedirs("%s/%s" % (self._db_dir, self._sub_chats_dir))
 
            # treat when more than limit chats in max dir 

src/g/m/gmvault-1.8.1-beta/src/gmv/gmvault_db.py   gmvault(Download)
            LOG.critical("No Storage DB in %s. Create it.\n" % (a_storage_dir))
 
        gmvault_utils.makedirs(self._db_dir)
        gmvault_utils.makedirs(self._chats_dir)
        gmvault_utils.makedirs(self._quarantine_dir)
        gmvault_utils.makedirs(self._info_dir)
                self._sub_chats_inc = 1
                self._sub_chats_dir = self.SUB_CHAT_AREA % ("subchats-%s" % (self._sub_chats_inc))
                gmvault_utils.makedirs("%s/%s" % (self._db_dir, self._sub_chats_dir))
 
            # treat when more than limit chats in max dir 

src/g/m/gmvault-HEAD/src/gmv/gmvault.py   gmvault(Download)
 
        #create dir if it doesn't exist
        gmvault_utils.makedirs(self.db_root_dir)
 
        #keep track of login email

src/g/m/gmvault-HEAD/src/sandbox/common_gmvault.py   gmvault(Download)
 
        #create dir if it doesn't exist
        gmvault_utils.makedirs(self.db_root_dir)
 
        #keep track of login email

src/g/m/gmvault-1.8.1-beta/src/gmv/gmvault.py   gmvault(Download)
 
        #create dir if it doesn't exist
        gmvault_utils.makedirs(self.db_root_dir)
 
        #keep track of login email

src/g/m/gmvault-HEAD/src/perf_tests.py   gmvault(Download)
            #make dir
            the_dir = '%s/%s' % (working_dir, dirname % (nb))
            gmvault_utils.makedirs(the_dir)
 
            for file_id in xrange(0,nb_files_per_dir):

src/g/m/gmvault-HEAD/src/gmvault_tests.py   gmvault(Download)
        storage_dir = "%s/db/%s" % (db_dir, '2011-11')
 
        gmvault_utils.makedirs(storage_dir)
 
        shutil.copyfile('../etc/tests/test_few_days_syncer/2384403887202624608.eml.gz','%s/2384403887202624608.eml.gz' % (storage_dir))