diff --git a/generated/routes.json b/generated/routes.json index 3bafddfd..e1a5b1c7 100644 --- a/generated/routes.json +++ b/generated/routes.json @@ -13,7 +13,7 @@ }, "/overview/management-api-reference": { "relPath": "/overview/management-api-reference.md", - "lastmod": "2025-07-09T01:30:04.000Z" + "lastmod": "2025-07-15T06:47:44.000Z" }, "/overview/agent-api-reference": { "relPath": "/overview/agent-api-reference.md", @@ -25,11 +25,11 @@ }, "/getting-started/first-steps": { "relPath": "/getting-started/first-steps/index.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/getting-started/first-steps/cli-quickstart": { "relPath": "/getting-started/first-steps/cli-quickstart.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/getting-started/first-steps/existing-cluster": { "relPath": "/getting-started/first-steps/existing-cluster.md", @@ -37,7 +37,7 @@ }, "/getting-started/first-steps/plural-cloud": { "relPath": "/getting-started/first-steps/plural-cloud.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T15:36:50.000Z" }, "/getting-started/how-to-use": { "relPath": "/getting-started/how-to-use/index.md", @@ -53,7 +53,7 @@ }, "/getting-started/how-to-use/scm-connection": { "relPath": "/getting-started/how-to-use/scm-connection.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/getting-started/how-to-use/workload-cluster": { "relPath": "/getting-started/how-to-use/workload-cluster.md", @@ -61,15 +61,15 @@ }, "/getting-started/how-to-use/controllers": { "relPath": "/getting-started/how-to-use/controllers.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/getting-started/how-to-use/observability": { "relPath": "/getting-started/how-to-use/observability.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/getting-started/how-to-use/microservice": { "relPath": "/getting-started/how-to-use/microservice.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/getting-started/how-to-use/pr-automation": { "relPath": "/getting-started/how-to-use/pr-automation.md", @@ -81,7 +81,7 @@ }, "/getting-started/how-to-use/cleaning-up": { "relPath": "/getting-started/how-to-use/cleaning-up.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/getting-started/advanced-config": { "relPath": "/getting-started/advanced-config/index.md", @@ -377,7 +377,7 @@ }, "/getting-started/quickstart": { "relPath": "/getting-started/first-steps/index.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/deployments/architecture": { "relPath": "/overview/architecture.md", @@ -393,7 +393,7 @@ }, "/deployments/cli-quickstart": { "relPath": "/getting-started/first-steps/cli-quickstart.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/deployments/existing-cluster": { "relPath": "/getting-started/first-steps/existing-cluster.md", @@ -401,7 +401,7 @@ }, "/getting-started/deployments": { "relPath": "/getting-started/first-steps/index.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/how-to/set-up/mgmt-cluster": { "relPath": "/getting-started/how-to-use/mgmt-cluster.md", @@ -413,7 +413,7 @@ }, "/how-to/set-up/scm-connection": { "relPath": "/getting-started/how-to-use/scm-connection.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/how-to/set-up/workload-cluster": { "relPath": "/getting-started/how-to-use/workload-cluster.md", @@ -421,7 +421,7 @@ }, "/how-to/set-up/controllers": { "relPath": "/getting-started/how-to-use/controllers.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/how-to/deploy/pr-automation": { "relPath": "/getting-started/how-to-use/pr-automation.md", @@ -429,7 +429,7 @@ }, "/how-to/deploy/microservice": { "relPath": "/getting-started/how-to-use/microservice.md", - "lastmod": "2025-07-14T14:28:27.000Z" + "lastmod": "2025-07-14T14:40:01.000Z" }, "/how-to/deploy/pipelines": { "relPath": "/getting-started/how-to-use/pipelines.md", diff --git a/pages/plural-features/continuous-deployment/lua.md b/pages/plural-features/continuous-deployment/lua.md index dceb13b4..94d3c7e6 100644 --- a/pages/plural-features/continuous-deployment/lua.md +++ b/pages/plural-features/continuous-deployment/lua.md @@ -127,14 +127,32 @@ end Returns a list of all files within the specified directory and its subdirectories. ```lua -local files = fs.walk(".") -if files then - values["allFiles"] = files +-- Example 1: Walk directory without ignoring dotfiles +local files, err = fs.walk("mydir") +if not files then + print("Error:", err) +else + for _, file in ipairs(files) do + print(file) + end +end + +-- Example 2: Walk directory while ignoring dotfiles +local files, err = fs.walk("mydir", true) +if not files then + print("Error:", err) +else + for _, file in ipairs(files) do + print(file) + end end + ``` **Parameters:** - `directory` (string): Relative path to the directory within the base directory +- `ignoreDotfiles` (boolean, optional): When set to `true`, the function will exclude dotfiles and directories starting with `.` from the returned list. Default value: `false` + **Returns:** - `[string]`: Array of relative file paths, or `nil` and error message on failure