file

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileRecursive

func CreateFileRecursive(filePath string, content []byte, perm os.FileMode) (retErr error)

CreateFileRecursive 递归创建文件并写入内容

func ToAbsolutePath added in v0.12.0

func ToAbsolutePath(path string) string

ToAbsolutePath expands a leading home-directory marker and converts a relative path to an absolute path. It preserves the input if resolution is unavailable so callers can still report the underlying file error later.

Types

This section is empty.

Jump to

Keyboard shortcuts

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