Add option to _check_perms

This commit is contained in:
Thomas S Hatch 2012-03-06 10:14:43 -07:00
parent 80883d6492
commit 883138b850

View File

@ -832,7 +832,7 @@ def directory(name,
return _error(ret, 'Failed to create directory {0}'.format(name))
# Check permissions
ret, perms = _check_perms(ret, user, group, mode)
ret, perms = _check_perms(name, ret, user, group, mode)
if recurse:
if not set(['user', 'group']) >= set(recurse):