Lines 274-279
Link Here
|
274 |
for name in names: |
274 |
for name in names: |
275 |
fullname = os.path.normpath(os.path.join(root, name)) |
275 |
fullname = os.path.normpath(os.path.join(root, name)) |
276 |
|
276 |
|
|
|
277 |
if os.path.islink(fullname): |
278 |
linkname = os.readlink(fullname); |
279 |
# log.debug("link: %s -> %s" % (fullname,linkname)) |
280 |
if linkname == ".": |
281 |
log.debug("skipping link: %s (.)" % fullname) |
282 |
continue |
283 |
|
277 |
for pat in pat_list: |
284 |
for pat in pat_list: |
278 |
if fnmatch.fnmatch(name, pat): |
285 |
if fnmatch.fnmatch(name, pat): |
279 |
if return_folders or not os.path.isdir(fullname): |
286 |
if return_folders or not os.path.isdir(fullname): |