mirror of https://github.com/tLDP/python-tldp
reporting when skipping a dir/file in sourcedir
This commit is contained in:
parent
388215186e
commit
c4ee8366f9
|
@ -58,14 +58,14 @@ def scansourcedirs(dirnames):
|
||||||
raise IOError(errno.ENOENT, os.strerror(errno.ENOENT), sdir)
|
raise IOError(errno.ENOENT, os.strerror(errno.ENOENT), sdir)
|
||||||
|
|
||||||
for sdir in sorted(dirs):
|
for sdir in sorted(dirs):
|
||||||
|
logger.debug("Scanning for source documents in %s.", sdir)
|
||||||
for fname in sorted(os.listdir(sdir)):
|
for fname in sorted(os.listdir(sdir)):
|
||||||
candidates = list()
|
candidates = list()
|
||||||
possible = arg_issourcedoc(os.path.join(sdir, fname))
|
possible = arg_issourcedoc(os.path.join(sdir, fname))
|
||||||
if possible:
|
if possible:
|
||||||
candidates.append(SourceDocument(possible))
|
candidates.append(SourceDocument(possible))
|
||||||
else:
|
else:
|
||||||
logger.warning("Skipping non-directory, non-plain file %s",
|
logger.warning("Skipping non-document %s", fname)
|
||||||
possible)
|
|
||||||
continue
|
continue
|
||||||
for candy in candidates:
|
for candy in candidates:
|
||||||
if candy.stem in found:
|
if candy.stem in found:
|
||||||
|
|
Loading…
Reference in New Issue