removeDir

public func removeDir(String) -> Result[(), IoError]

Removes an empty directory at path.

Wraps rmdir(2). Fails with ENOTEMPTY if the directory still has entries — list and remove its contents first if you need a recursive remove.

Errors

Returns Err(IoError) on any libc failure; errno is captured.

Defined in lang/std/os/fs.ks