add a note
This commit is contained in:
parent
e58850eb05
commit
949f23dd7b
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue