forked from solderpunk/AV-98
working on get_body
This commit is contained in:
parent
9609a8d91f
commit
b3051efe72
|
@ -225,6 +225,10 @@ def get_cache_path(url):
|
|||
#and we try to access folder
|
||||
if os.path.isdir(cache_path):
|
||||
cache_path += "/" + index
|
||||
if len(cache_path) > 259:
|
||||
print("Path is too long. This is an OS limitation.\n\n")
|
||||
print(url)
|
||||
return None
|
||||
return cache_path
|
||||
|
||||
def write_body(url,body,mime=None):
|
||||
|
|
|
@ -179,10 +179,6 @@ class GeminiItem():
|
|||
path = None
|
||||
if path:
|
||||
# There’s on OS limit on path length
|
||||
if len(path) > 259:
|
||||
toreturn = "Path is too long. This is an OS limitation.\n\n"
|
||||
toreturn += self.url
|
||||
return toreturn
|
||||
elif as_file:
|
||||
return path
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue