Compare commits

..

2 Commits

Author SHA1 Message Date
yumoqing
5bd46ca3a1 Merge branch 'master' of git.kaiyuancloud.cn:yumoqing/ahserver 2024-11-17 20:07:42 +08:00
yumoqing
0b1e5c35ac bugfix 2024-11-17 20:07:35 +08:00

View File

@ -88,6 +88,10 @@ class FileStorage:
p = os.path.abspath(os.path.join(self.root,path))
return p
def webpath(self, path):
if path.startswith(self.root):
return path[len(self.root):]
def _name2path(self,name, userid=None):
name = os.path.basename(name)
paths=[191,193,197,97]