diff --git a/physical/dynamodb.go b/physical/dynamodb.go index 582640273de9..fab88ae44130 100644 --- a/physical/dynamodb.go +++ b/physical/dynamodb.go @@ -724,7 +724,8 @@ func ensureTableExists(client *dynamodb.DynamoDB, table string, readCapacity, wr // its last component. func recordPathForVaultKey(key string) string { if strings.Contains(key, "/") { - return filepath.Dir(key) + newPath := filepath.ToSlash(filepath.Dir(key)) + return newPath } return DynamoDBEmptyPath }