fsmod

package
v0.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package fsmod is the native module "fs": directories and files of the local file system (TODO.md Q61).

use fs;
for (local e in fs::readdir(".")) println(e["name"], e["dir"] ? "/" : e["size"]);
fs::walk("src", fn(path, e) { if (fs::ext(path) == ".kkl") println(path); });

An entry is a map: name, size, dir, link, mode and time (a time::Time). What fails is an IOError. Symbolic links are not followed by walk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModeString

func ModeString(m fs.FileMode) string

ModeString is mode as ls shows it: "-rw-r--r--", "drwxr-xr-x", "lrwxrwxrwx"; s, S and t, T for setuid, setgid and sticky.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL