method fs.cwd
Current working directory.
Example:
use std.io { fs }
fn main() io {
print("{fs.cwd()!.startsWith("/")}")
}Вывод
true
pub(api) static fn cwd() -> str | IoError ioС версии. 1.0.0-beta
Возвращает
str
Ошибки
IoError@error- `IoError` when the working directory was removed.
Эффекты
io
Определено в: std/io/io.oxl:769