Merge pull request #2174 from brandonheller/master

vmware/iso: support hierarchical output directories
This commit is contained in:
Mitchell Hashimoto 2015-06-10 11:33:59 -07:00
commit 1d653efe90
1 changed files with 2 additions and 2 deletions

View File

@ -311,8 +311,8 @@ func (d *ESX5Driver) String() string {
}
func (d *ESX5Driver) datastorePath(path string) string {
baseDir := filepath.Base(filepath.Dir(path))
return filepath.ToSlash(filepath.Join("/vmfs/volumes", d.Datastore, baseDir, filepath.Base(path)))
dirPath := filepath.Dir(path)
return filepath.ToSlash(filepath.Join("/vmfs/volumes", d.Datastore, dirPath, filepath.Base(path)))
}
func (d *ESX5Driver) cachePath(path string) string {