azureblob,b2,qingstor,s3,swift: remove leading / from paths - fixes #2484
This commit is contained in:
parent
502d8b0cdd
commit
7194c358ad
5 changed files with 7 additions and 5 deletions
|
@ -216,7 +216,7 @@ func (f *Fs) Features() *fs.Features {
|
|||
}
|
||||
|
||||
// Pattern to match a swift path
|
||||
var matcher = regexp.MustCompile(`^([^/]*)(.*)$`)
|
||||
var matcher = regexp.MustCompile(`^/*([^/]*)(.*)$`)
|
||||
|
||||
// parseParse parses a swift 'url'
|
||||
func parsePath(path string) (container, directory string, err error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue