This commit is contained in:
yumoqing 2026-05-05 15:31:41 +08:00
parent 7ac39cd2fc
commit dd3fc6e37a

View File

@ -53,7 +53,7 @@ class Url2File:
ourl = url ourl = url
url = url.split('?')[0] url = url.split('?')[0]
real_path = self.url2ospath(url) real_path = self.url2ospath(url)
if os.path.isdir(real_path): if os.path.isdir(real_path) and self.indexes:
for idx in self.indexes: for idx in self.indexes:
p = os.path.join(real_path,idx) p = os.path.join(real_path,idx)
if os.path.isfile(p): if os.path.isfile(p):