first cut of paths actually working with folder viewing - for now defaulting on for both Storage only
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user