Skip to content

Commit 96a2f65

Browse files
Fixed 'with' 'without' mix up *fail*
1 parent bf3fc38 commit 96a2f65

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Backup/Sync/SoftLayer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function setup(array $config)
8989
$this->secret = $config['secret'];
9090
$this->container = $config['container'];
9191
$this->host = $config['host'];
92-
$this->path = String::withoutLeadingSlash(
92+
$this->path = String::withLeadingSlash(
9393
String::withTrailingSlash(String::replaceDatePlaceholders($config['path']))
9494
);
9595
}
@@ -110,6 +110,9 @@ public function sync(Target $target, Result $result)
110110
$options = array('adapter' => ObjectStorage_Http_Client::SOCKET, 'timeout' => 20);
111111
$objectStorage = new ObjectStorage($this->host, $this->user, $this->secret, $options);
112112

113+
$result->debug('softlayer source: ' . $sourcePath);
114+
$result->debug('softlayer target: ' . $targetPath);
115+
113116
try {
114117
/** @var \ObjectStorage_Container $object */
115118
$container = $objectStorage->with($this->container . $targetPath)

0 commit comments

Comments
 (0)