Skip to content

Commit

Permalink
Implement basic folder creation (can only create the last folder, not…
Browse files Browse the repository at this point in the history
… recursive) -- Issue #98
  • Loading branch information
jswift committed Jan 7, 2022
1 parent 56b3ae4 commit d466a16
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/BigCommerce/Files/BigCommerceFilesClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,11 @@ public function put(string $localFilename, string $targetFilename): bool

return $response->getStatusCode() === 201;
}

public function mkdir(string $dirname): bool
{
$response = $this->client->request('MKCOL', $dirname);

return $response->getStatusCode() === 201;
}
}

0 comments on commit d466a16

Please sign in to comment.