fs

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: BSD-3-Clause Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fs contains focused filesystem helpers shared by Arcane Go modules.

Index

Constants

This section is empty.

Variables

View Source
var (
	FilePerm os.FileMode = 0o644
	DirPerm  os.FileMode = 0o755
)
View Source
var ErrInvalidPath = errors.New("invalid workspace path")

ErrInvalidPath indicates that a logical workspace path is malformed.

Functions

func FormatMode

func FormatMode(mode os.FileMode) string

FormatMode formats a Go file mode like POSIX stat output.

func LogicalPath

func LogicalPath(relativePath string) string

LogicalPath converts an os.Root-relative path to an absolute logical path.

func NormalizeLogicalPath

func NormalizeLogicalPath(logicalPath string) (string, error)

NormalizeLogicalPath validates an absolute logical workspace path and returns the relative form accepted by os.Root.

Types

This section is empty.

Directories

Path Synopsis
Package atomic provides crash-safe atomic file writes at an absolute path.
Package atomic provides crash-safe atomic file writes at an absolute path.

Jump to

Keyboard shortcuts

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