Skip to content
Snippets Groups Projects
Commit cc00a757 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

remove unnessary replace command

parent cb42975b
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,6 @@ curl -s http://a75436:5301/accessGitFS/file/2020-02-05/09-49-04-9da869dfa9/000_S
> 000_SERVERS.json
```
RN (2021-01-06)
RN (2021-01-07)
......@@ -5,7 +5,7 @@
"host":"0.0.0.0",
"port":5301
},
"version":"1.0.0",
"version":"1.0.1",
"gitfs_dir":"/var/run/mount/vl-gitfs/history/",
"gitfs_dir_DUMMY":"/etc/"
}
# Rolf Niepraschk (Rolf.Niepraschk@ptb.de), 2021-01-07
import json
import os
from flask import Flask, jsonify, send_from_directory
......@@ -19,7 +21,7 @@ def getDirs(root):
try:
for d in os.scandir(root):
if d.is_dir():
dirs.append(d.path.replace(root, ''))
dirs.append(d.name)
dirs.sort()
except:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment