Commit 32733637 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

rename server storage -> browse root dir

parent 16d4c653
......@@ -56,7 +56,7 @@ work_directory = <path>/work
# Where should the pipelines write temporary files, should be
# accessible by all cluster nodes
tmp_directory = <path>/tmp
server_storage = <path>
browse_root_dir = <path>
[softwares]
# uncomment and set if not in the PATH
......
......@@ -125,5 +125,5 @@ class JFlowConfigReader(object):
except:
return ""
def get_storage_folder(self):
return self.reader.get("storage", "server_storage")
def get_browse_root_dir(self):
return self.reader.get("storage", "browse_root_dir")
......@@ -125,9 +125,9 @@ class JFlowServer (object):
self.jflow_config_reader = JFlowConfigReader()
@staticmethod
def get_storage_folder():
def get_browse_root_dir():
jflowconf = JFlowConfigReader()
return jflowconf.get_storage_folder()
return jflowconf.get_browse_root_dir()
@staticmethod
def quickstart(server_class, config=None, daemon=False):
......@@ -583,7 +583,7 @@ class JFlowServer (object):
r=['<ul class="jqueryFileTree" style="display: none;">']
try:
r=['<ul class="jqueryFileTree" style="display: none;">']
d=kwargs["dir"] if kwargs["dir"] != "/" else self.get_storage_folder()
d=kwargs["dir"] if kwargs["dir"] != "/" else self.get_browse_root_dir()
for f in self.sort_files(os.listdir(d), d):
ff=os.path.join(d,f)
if os.path.isdir(ff):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment