def check_size(path, size):
 free = get_free_space(path)
 if (free < size):
  raise CondaIOError('Not enough space in {}'.format(path))

def check_size ( path , size ) : free = get_free_space ( path ) if ( free < size ) : raise CondaIOError ( 'Not enough space in {}' . format ( path ) )
check whether the directory has enough space .