fs

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package fs is utilities for filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src string, dst string) (err error)

Copy copies a file or a directory.

func IsRootDir added in v0.1.1

func IsRootDir(dir string) bool

IsRootDir returns true if the given directory is the root directory.

func IsSubDir added in v0.1.1

func IsSubDir(subDir string, parentDir string) (bool, error)

IsSubDir returns true if subDir is a subdirectory of parentDir.

func Move

func Move(src string, dst string) (err error)

Move moves a file or a directory.

func Realpath added in v0.1.4

func Realpath(s string) (ret string, err error)

Realpath returns the canonical absolute path of the given value.

func Touch

func Touch(path string) (err error)

Touch creates an empty file if it doesn't exist, or updates its modification time if it does.

Types

This section is empty.

Jump to

Keyboard shortcuts

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