bpo-37834: Prevent shutil.rmtree exception by ned-deily · Pull Request #15602 · python/cpython
if hasattr(stat, 'FILE_ATTRIBUTE_REPARSE_POINT'): if hasattr(os.stat_result, 'st_file_attributes'): # Special handling for directory junctions to make them behave like # symlinks for shutil.rmtree, since in general they do not appear as # regular links.