Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Don't create empty files.
Browse files Browse the repository at this point in the history
  • Loading branch information
amscanne committed Feb 3, 2015
1 parent 41142a1 commit 106ea28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/novmm/plan9/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,9 @@ func (file *File) makeTree(
path string) error {

// Make all the super directories.
basedir, _ := filepath.Split(path)
basedir := filepath.Dir(path)

if basedir != path {
if basedir != "." {
parent, err := fs.lookup(basedir)
if err != nil {
return err
Expand Down

0 comments on commit 106ea28

Please sign in to comment.