From 9b4ddae45b5dd9364ae5fcf968487e3a78c5aa20 Mon Sep 17 00:00:00 2001 From: wingbot <109207340+monadabot@users.noreply.github.com> Date: Mon, 21 Aug 2023 13:09:18 -0400 Subject: [PATCH] feat(docs): update docs (#580) feat(docs): update docs Updates the Wing docs. See details in [workflow run]. [Workflow Run]: https://github.com/winglang/docsite/actions/runs/5929318839 ------ *Automatically created via the "update-docs" workflow* --- .../04-standard-library/01-cloud/bucket.md | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/versioned_docs/version-latest/04-standard-library/01-cloud/bucket.md b/versioned_docs/version-latest/04-standard-library/01-cloud/bucket.md index d671921e5..1d73d388a 100644 --- a/versioned_docs/version-latest/04-standard-library/01-cloud/bucket.md +++ b/versioned_docs/version-latest/04-standard-library/01-cloud/bucket.md @@ -150,6 +150,7 @@ new cloud.Bucket(props?: BucketProps); | **Name** | **Description** | | --- | --- | +| addFile | Add a file to the bucket from system folder. | | addObject | Add a file to the bucket that is uploaded when the app is deployed. | | onCreate | Run an inflight whenever a file is uploaded to the bucket. | | onDelete | Run an inflight whenever a file is deleted from the bucket. | @@ -174,6 +175,40 @@ new cloud.Bucket(props?: BucketProps); --- +##### `addFile` + +```wing +addFile(key: str, path: str, encoding?: str): void +``` + +Add a file to the bucket from system folder. + +###### `key`Required + +- *Type:* str + +The key or name to associate with the file. + +--- + +###### `path`Required + +- *Type:* str + +The path to the file on the local system. + +--- + +###### `encoding`Optional + +- *Type:* str + +The encoding to use when reading the file. + +Defaults to "utf-8". + +--- + ##### `addObject` ```wing