Skip to content

Commit

Permalink
fix: filesystem changes based on where is running
Browse files Browse the repository at this point in the history
  • Loading branch information
42atomys committed Nov 27, 2024
1 parent fdad32c commit bf76a45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/registries/filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ The function returns the last element of a given path, using the operating syste
{% tabs %}
{% tab title="Template Example" %}
```go
{{ "C:\\path\\to\\file.txt" | osBase }} // Output: "file.txt"
{{ "C:\\path\\to\\file.txt" | osBase }} // Output(will be different): "file.txt"
```
{% endtab %}
{% endtabs %}
Expand All @@ -118,7 +118,7 @@ The function returns all but the last element of a given path, using the operati
{% tabs %}
{% tab title="Template Example" %}
```go
{{ "C:\\path\\to\\file.txt" | osDir }} // Output: "C:\\path\\to"
{{ "C:\\path\\to\\file.txt" | osDir }} // Output(will be different): "C:\\path\\to"
```
{% endtab %}
{% endtabs %}
Expand Down Expand Up @@ -148,7 +148,7 @@ The function cleans up a given path, using the operating system's specific path
{% tabs %}
{% tab title="Template Example" %}
```go
{{ "C:\\path\\\\to\\file.txt" | osClean }} // Output: "C:\\path\\to\\file.txt"
{{ "C:\\path\\\\to\\file.txt" | osClean }} // Output(will be different): "C:\\path\\to\\file.txt"
```
{% endtab %}
{% endtabs %}
Expand All @@ -163,7 +163,7 @@ The function checks whether the given path is absolute, using the operating syst
{% tabs %}
{% tab title="Template Example" %}
```go
{{ "C:\\path\\to\\file.txt" | osIsAbs }} // Output: true
{{ "C:\\path\\to\\file.txt" | osIsAbs }} // Output(will be different): true
```
{% endtab %}
{% endtabs %}

0 comments on commit bf76a45

Please sign in to comment.