Return True if given directory is empty, false otherwise.

def dir_empty(d):
    '''Return True if given directory is empty, false otherwise.'''
    flist = glob.glob(os.path.join(d,'*'))
    return (len(flist) == 0)