Skip to content
This repository was archived by the owner on Jan 17, 2018. It is now read-only.

Commit

Permalink
Merge pull request #66 from ahmetalpbalkan/remotepath-fix
Browse files Browse the repository at this point in the history
Preserve double slash in UNC with remotepath
  • Loading branch information
ahmetb authored Sep 16, 2016
2 parents 81e6f45 + 74af62a commit 96e9a52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ $ docker volume create -d azurefile \
## Changelog

```
# 0.5.0(2016-08-19)
# 0.5.1 (2016-09-16)
- Bugfix: "bad UNC" error for remotepath (#63)
# 0.5.0 (2016-08-19)
- Added volume option 'remotepath' (#46)
- Upgraded plugin protocol for docker 1.12.0 (#57)
- Fixed stale version string in --help (#58)
Expand Down
3 changes: 1 addition & 2 deletions driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"os"
"os/exec"
"path"
"path/filepath"
"strings"
"sync"
Expand Down Expand Up @@ -305,7 +304,7 @@ func mount(accountName, accountKey, storageBase, mountPath string, options Volum
}
mountURI := fmt.Sprintf("//%s.file.%s/%s", accountName, storageBase, options.Share)
if len(options.RemotePath) != 0 {
mountURI = path.Join(mountURI, options.RemotePath)
mountURI += fmt.Sprintf("/%s", strings.TrimPrefix(options.RemotePath, "/"))
}

opts := []string{
Expand Down

0 comments on commit 96e9a52

Please sign in to comment.