aboutsummaryrefslogtreecommitdiff
path: root/docs/paths.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-04 18:29:09 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-04 18:29:09 -0400
commit7b735ab6fc3e0bb368f1ca484168eaefbbe3ce9c (patch)
tree4a7c78bb0967b8fbc1042d901cf0346705d9d0d8 /docs/paths.md
parent0b8074154e2671691050bdb3bcb33245625a056c (diff)
Misc fixes
Diffstat (limited to 'docs/paths.md')
-rw-r--r--docs/paths.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/paths.md b/docs/paths.md
index 234ad44f..2bfc9b0f 100644
--- a/docs/paths.md
+++ b/docs/paths.md
@@ -68,7 +68,7 @@ intended. Paths can be created from text with slashes using
- [`func relative_to(path: Path, relative_to=(./) -> Path)`](#relative_to)
- [`func remove(path: Path, ignore_missing=no -> Void)`](#remove)
- [`func resolved(path: Path, relative_to=(./) -> Path)`](#resolved)
-- [`func set_owner(path:Path, owner=none:Text, group=none:Text, follow_symlinks=yes)`](#set_owner)
+- [`func set_owner(path:Path, owner:Text?=none, group:Text?=none, follow_symlinks=yes)`](#set_owner)
- [`func subdirectories(path: Path, include_hidden=no -> [Path])`](#subdirectories)
- [`func unique_directory(path: Path -> Path)`](#unique_directory)
- [`func write(path: Path, text: Text, permissions=0o644[32] -> Void)`](#write)
@@ -95,7 +95,7 @@ accessed, or `none` if no such file or directory exists.
>> (./file.txt):accessed()
= 1704221100?
>> (./not-a-file):accessed()
-= none:Int64?
+= none
```
---
@@ -289,7 +289,7 @@ changed, or `none` if no such file or directory exists.
>> (./file.txt):changed()
= 1704221100?
>> (./not-a-file):changed()
-= none:Int64
+= none
```
---
@@ -535,7 +535,7 @@ The name of the group which owns the file or directory, or `none` if the path do
>> (/bin):group()
= "root"
>> (/non/existent/file):group()
-= none:Text
+= none
```
---
@@ -648,7 +648,7 @@ modified, or `none` if no such file or directory exists.
>> (./file.txt):modified()
= 1704221100?
>> (./not-a-file):modified()
-= none:Int64
+= none
```
---
@@ -671,7 +671,7 @@ The name of the user who owns the file or directory, or `none` if the path does
>> (/bin):owner()
= "root"
>> (/non/existent/file):owner()
-= none:Text
+= none
```
---
@@ -717,7 +717,7 @@ raised.
= "Hello"?
>> (./nosuchfile.xxx):read()
-= none:Text
+= none
```
---
@@ -741,7 +741,7 @@ returned.
= [72[B], 101[B], 108[B], 108[B], 111[B]]?
>> (./nosuchfile.xxx):read()
-= none:[Byte]
+= none
```
---
@@ -815,7 +815,7 @@ The resolved absolute path.
Set the owning user and/or group for a path.
```tomo
-func set_owner(path:Path, owner: Text? = none:Text, group: Text? = none:Text, follow_symlinks: Bool = yes)
+func set_owner(path:Path, owner: Text? = none, group: Text? = none, follow_symlinks: Bool = yes)
```
- `path`: The path to change the permissions for.