first cut of paths actually working with folder viewing - for now defaulting on for both Storage only

This commit is contained in:
2021-05-01 18:16:45 +10:00
parent b6b98ae5ca
commit 5e03650ed5
5 changed files with 65 additions and 38 deletions

View File

@@ -29,7 +29,7 @@ def CreateSelect(name, selected, list, js=""):
str += '</select>'
return str
def SymlinkName(path, file):
def SymlinkName(ptype, path, file):
sig_bit=file.replace(path, "")
last_dir=os.path.basename(path[0:-1])
@@ -37,7 +37,7 @@ def SymlinkName(path, file):
last_bit = os.path.dirname(sig_bit)[0:-1]
else:
last_bit = os.path.dirname(sig_bit)
symlink = 'static/'+last_dir+'/'+last_bit
symlink = 'static/'+ptype+'/'+last_dir+'/'+last_bit
if symlink[-1] == '/':
symlink=symlink[0:-1]
return symlink
return symlink