bugfix
This commit is contained in:
parent
674ec1626e
commit
0b1e5c35ac
@ -88,6 +88,10 @@ class FileStorage:
|
|||||||
p = os.path.abspath(os.path.join(self.root,path))
|
p = os.path.abspath(os.path.join(self.root,path))
|
||||||
return p
|
return p
|
||||||
|
|
||||||
|
def webpath(self, path):
|
||||||
|
if path.startswith(self.root):
|
||||||
|
return path[len(self.root):]
|
||||||
|
|
||||||
def _name2path(self,name, userid=None):
|
def _name2path(self,name, userid=None):
|
||||||
name = os.path.basename(name)
|
name = os.path.basename(name)
|
||||||
paths=[191,193,197,97]
|
paths=[191,193,197,97]
|
||||||
|
Loading…
Reference in New Issue
Block a user