From 1ba92782d6fbcda35f95b01f346b530cd426453d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 1 Feb 2023 11:04:01 +0800 Subject: [PATCH] bugfix --- ahserver/url2file.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ahserver/url2file.py b/ahserver/url2file.py index 2d009a3..e6e3b44 100644 --- a/ahserver/url2file.py +++ b/ahserver/url2file.py @@ -45,9 +45,11 @@ class Url2File: return real_path if not os.path.isdir(os.path.dirname(real_path)): + print(f'url2file() return None, {real_path:}') return None if not self.inherit: + print(f'url2file() return None, self.inherit is false') return None items = url.split('/') @@ -55,6 +57,7 @@ class Url2File: del items[-2] url = '/'.join(items) return self.url2file(url) + print(f'url2file() return None finally, {items:}') return None def relatedurl(self,url: str, name: str) -> str: