Skip to content

Commit 64ee9e7

Browse files
author
Erik Corry
authored
Remove path-separator, since the name is confusing. (#67)
You can use LIST-SEPARATOR from the fs package. Also adds missing types on flags.
1 parent 0d4d905 commit 64ee9e7

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

src/file.toit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,14 @@ rename from/string to/string -> none:
269269
/**
270270
Creates a hard link from $source to a $target file.
271271
*/
272-
link --hard --source/string --target/string -> none:
272+
link --hard/bool --source/string --target/string -> none:
273273
if not hard: throw "INVALID_ARGUMENT"
274274
link_ source target LINK_TYPE_HARD_
275275

276276
/**
277277
Creates a soft link from $source to a $target file.
278278
*/
279-
link --file --source/string --target/string -> none:
279+
link --file/bool --source/string --target/string -> none:
280280
if not file: throw "INVALID_ARGUMENT"
281281
if is-directory target:
282282
throw "Target is a directory"
@@ -285,7 +285,7 @@ link --file --source/string --target/string -> none:
285285
/**
286286
Creates a soft link from $source to a $target directory.
287287
*/
288-
link --directory --source/string --target/string -> none:
288+
link --directory/bool --source/string --target/string -> none:
289289
if not directory: throw "INVALID_ARGUMENT"
290290
if is-file target:
291291
throw "Target is a file"

src/os.toit

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@ A map-like object that represents the environment variables of the current
5858
*/
5959
env / EnvironmentVariableMap ::= EnvironmentVariableMap.private_
6060

61-
/**
62-
The path separator for the underlying operating system.
63-
*/
64-
path-separator -> string:
65-
if system.platform == system.PLATFORM-FREERTOS: throw "UNSUPPORTED"
66-
if system.platform == system.PLATFORM-WINDOWS:
67-
return ";"
68-
else:
69-
return ":"
70-
7161
get_env_ key/string -> string?:
7262
#primitive.core.get_env
7363

0 commit comments

Comments
 (0)