Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
bb875b56
Commit
bb875b56
authored
Jun 27, 2016
by
Michelle Noorali
Committed by
GitHub
Jun 27, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #896 from michelleN/fix/892-fetch-untar
fix(chartutil): fix chartutil.Expand function
parents
ab4e20c2
bcffe8a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
expand.go
pkg/chartutil/expand.go
+10
-0
No files found.
pkg/chartutil/expand.go
View file @
bb875b56
...
...
@@ -40,6 +40,16 @@ func Expand(dir string, r io.Reader) error {
return
err
}
//split header name and create missing directories
d
,
_
:=
filepath
.
Split
(
header
.
Name
)
fullDir
:=
filepath
.
Join
(
dir
,
d
)
_
,
err
=
os
.
Stat
(
fullDir
)
if
err
!=
nil
&&
d
!=
""
{
if
err
:=
os
.
MkdirAll
(
fullDir
,
0700
);
err
!=
nil
{
return
err
}
}
path
:=
filepath
.
Clean
(
filepath
.
Join
(
dir
,
header
.
Name
))
info
:=
header
.
FileInfo
()
if
info
.
IsDir
()
{
...
...
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