add a note

This commit is contained in:
Mike McLean 2016-12-15 12:21:37 -05:00
parent e58850eb05
commit 949f23dd7b

View file

@ -320,7 +320,9 @@ def rmtree(path):
def rmtree2(path):
"""Reimplement to avoid forming long paths"""
"""Delete a directory tree without crossing fs boundaries"""
# implemented to avoid forming long paths
# see: https://pagure.io/koji/issue/201
st = os.lstat(path)
if not stat.S_ISDIR(st.st_mode):
raise koji.GenericError, "Not a directory: %s" % path