Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
76bb4827
authored
2014-12-18 21:24:17 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #953 from kristen1980/patch-2
Allow absolute path for filesystem cache
2 parents
3caba061
77ed1512
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
cache/file.go
cache/file.go
View file @
76bb482
...
...
@@ -92,8 +92,6 @@ func (fc *FileCache) StartAndGC(config string) error {
// Init will make new dir for file cache if not exist.
func
(
fc
*
FileCache
)
Init
()
{
app
:=
filepath
.
Dir
(
os
.
Args
[
0
])
fc
.
CachePath
=
filepath
.
Join
(
app
,
fc
.
CachePath
)
if
ok
,
_
:=
exists
(
fc
.
CachePath
);
!
ok
{
// todo : error handle
_
=
os
.
MkdirAll
(
fc
.
CachePath
,
os
.
ModePerm
)
// todo : error handle
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment