@synchronized(DIR_LOCK)
def create_dirs(dirpath):
 if (not os.path.exists(dirpath)):
  logging.info('Creating directories: %s', dirpath)
  if (not create_all_dirs(dirpath, True)):
   logging.error(T('Failed making (%s)'), clip_path(dirpath))
   return None
 return dirpath

@ synchronized ( DIR_LOCK ) def create_dirs ( dirpath ) : if ( not os . path . exists ( dirpath ) ) : logging . info ( 'Creating directories: %s' , dirpath ) if ( not create_all_dirs ( dirpath , True ) ) : logging . error ( T ( 'Failed making (%s)' ) , clip_path ( dirpath ) ) return None return dirpath
create directory tree .