mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-03 21:24:11 +03:00
Fix path check
This commit is contained in:
parent
db2dbc8e59
commit
cef97e4b63
|
@ -62,7 +62,7 @@ class Corpus:
|
|||
if str(path) in seen:
|
||||
continue
|
||||
seen.add(str(path))
|
||||
if path.parts[-1].startswith("."):
|
||||
if path.parts and path.parts[-1].startswith("."):
|
||||
continue
|
||||
elif path.is_dir():
|
||||
paths.extend(path.iterdir())
|
||||
|
|
Loading…
Reference in New Issue
Block a user