Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Bastien Gounon
xcache-flusher
Commits
c7143a5b
Commit
c7143a5b
authored
Jul 30, 2020
by
Bastien Gounon
🐗
Browse files
unexport ClearAllFiles - not needed
parent
2f22b9f0
Pipeline
#78299
passed with stage
in 51 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
files.go
files.go
+1
-2
main.go
main.go
+1
-1
No files found.
files.go
View file @
c7143a5b
...
...
@@ -5,8 +5,7 @@ import (
"path/filepath"
)
// ClearAllFiles remove all files and folders inside of a given path
func
ClearAllFiles
(
dir
string
)
error
{
func
clearAllFiles
(
dir
string
)
error
{
d
,
err
:=
os
.
Open
(
dir
)
if
err
!=
nil
{
return
err
...
...
main.go
View file @
c7143a5b
...
...
@@ -25,7 +25,7 @@ func main() {
if
userToken
!=
serverToken
{
c
.
String
(
http
.
StatusUnauthorized
,
"Permission denied."
)
}
else
{
err
:=
C
learAllFiles
(
dir
)
err
:=
c
learAllFiles
(
dir
)
if
err
!=
nil
{
c
.
String
(
http
.
StatusInternalServerError
,
"Error while trying to flush the cache, please check with the system administrator: %s"
,
err
.
Error
())
}
else
{
...
...
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