-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add file path join to stdlib (#1698)
* add file path join to stdlib * Update docs/sources/reference/stdlib/file.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> --------- Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
- Loading branch information
1 parent
567f0c0
commit fc62a1e
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
canonical: https://grafana.com/docs/alloy/latest/reference/stdlib/file/ | ||
description: Learn about file functions | ||
menuTitle: file | ||
title: file | ||
--- | ||
|
||
# file | ||
|
||
The `file` namespace contains functions related to files. | ||
|
||
## file.path_join | ||
|
||
The `file.path_join` function joins any number of path elements into a single path, separating them with an OS-specific separator. | ||
|
||
### Examples | ||
|
||
``` | ||
> file.path_join() | ||
"" | ||
> file.path_join("this/is", "a/path") | ||
"this/is/a/path" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters