Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractalis
Commits
d63d737d
Commit
d63d737d
authored
Jul 19, 2018
by
Sascha Herzinger
Browse files
#3
parent
3a4a8edf
Pipeline
#5859
failed with stages
in 37 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fractalis/cleanup.py
View file @
d63d737d
...
...
@@ -10,6 +10,8 @@ def janitor():
"""
data_dir
=
os
.
path
.
join
(
app
.
config
[
'FRACTALIS_TMP_DIR'
],
'data'
)
if
not
os
.
path
.
exists
(
data_dir
):
for
key
in
redis
.
scan_iter
(
'data:*'
):
redis
.
delete
(
key
)
return
cached_files
=
[
f
for
f
in
os
.
listdir
(
data_dir
)
if
os
.
path
.
isfile
(
os
.
path
.
join
(
data_dir
,
f
))]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment