We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5481ced + 2f01331 commit e519f20Copy full SHA for e519f20
tika/tika.py
@@ -174,6 +174,8 @@ def getPaths(urlOrPaths):
174
a directory, it walks the directory and then finds all file paths in it, and ads them
175
too. If it's a file, it adds it to the paths. If it's a URL it just adds it to the path.
176
"""
177
+ if isinstance(urlOrPaths, basestring):
178
+ urlOrPaths = [urlOrPaths] # do not recursively walk over letters of a single path which can include "/"
179
paths = []
180
for eachUrlOrPaths in urlOrPaths:
181
if os.path.isdir(eachUrlOrPaths):
0 commit comments