Functions
The following functions are available globally.
-
Creates and returns 2 connected streams. Whatever you write into the first one you can read from the second.
Declaration
Swift
public func streams() -> (WritableStream,ReadableStream)
-
Tries to create a new Path by detecting if it is a directory or a file.
If the path ends in a ’/’, it is a directory. If the path exists, check in the file system. Otherwise return nil.
Declaration
Swift
public func path(detectTypeOf stringpath: String) -> Path?