bugfix
This commit is contained in:
parent
3a305a185c
commit
1ba92782d6
@ -45,9 +45,11 @@ class Url2File:
|
|||||||
return real_path
|
return real_path
|
||||||
|
|
||||||
if not os.path.isdir(os.path.dirname(real_path)):
|
if not os.path.isdir(os.path.dirname(real_path)):
|
||||||
|
print(f'url2file() return None, {real_path:}')
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if not self.inherit:
|
if not self.inherit:
|
||||||
|
print(f'url2file() return None, self.inherit is false')
|
||||||
return None
|
return None
|
||||||
|
|
||||||
items = url.split('/')
|
items = url.split('/')
|
||||||
@ -55,6 +57,7 @@ class Url2File:
|
|||||||
del items[-2]
|
del items[-2]
|
||||||
url = '/'.join(items)
|
url = '/'.join(items)
|
||||||
return self.url2file(url)
|
return self.url2file(url)
|
||||||
|
print(f'url2file() return None finally, {items:}')
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def relatedurl(self,url: str, name: str) -> str:
|
def relatedurl(self,url: str, name: str) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user