Skip to content

Commit

Permalink
Add explanatory comment and fix readme typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Jul 11, 2016
1 parent d0c7c0a commit a075791
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Supported formats/extensions:
## Install

```bash
go get github.com/mholt/cmd/archiver
go get github.com/mholt/archiver/cmd/archiver
```

Or download binaries from the [releases](https://github.com/mholt/archiver/releases) page.
Expand Down
2 changes: 2 additions & 0 deletions rar.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ func Unrar(source, destination string) error {
continue
}

// if files come before their containing folders, then we must
// create their folders before writing the file
err = mkdir(filepath.Dir(filepath.Join(destination, header.Name)))
if err != nil {
return err
Expand Down

0 comments on commit a075791

Please sign in to comment.