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
I
installer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
redox-os
installer
Commits
cfdb2a49
Commit
cfdb2a49
authored
Jan 09, 2017
by
Jeremy Soller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log creation of parent dirs
parent
be092f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/install.rs
src/install.rs
+2
-1
No files found.
src/install.rs
View file @
cfdb2a49
...
...
@@ -71,10 +71,11 @@ fn extract_inner<T: Read>(ar: &mut Archive<T>, root: &Path) -> io::Result<()> {
let
mut
file
=
{
let
mut
path
=
root
.to_path_buf
();
path
.push
(
try!
(
entry
.path
()));
println!
(
"Extract file {}"
,
path
.display
());
if
let
Some
(
parent
)
=
path
.parent
()
{
println!
(
"Extract file parent {}"
,
parent
.display
());
try!
(
fs
::
create_dir_all
(
parent
));
}
println!
(
"Extract file {}"
,
path
.display
());
try!
(
fs
::
OpenOptions
::
new
()
.read
(
true
)
...
...
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