def find(path, *args, **kwargs):
    if 'delete' in args:
        kwargs['delete'] = 'f'
    elif 'print' in args:
        kwargs['print'] = 'path'

    try:
        finder = salt.utils.find.Finder(kwargs)
    except ValueError as ex:
        return 'error: {0}'.format(ex)

    ret = [item for i in [finder.find(p) for p in glob.glob(os.path.expanduser(path))] for item in i]
    ret.sort()
    return ret
Approximate the Unix ``find(1)`` command and return a list of paths that
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/find