fp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 2 Imported by: 0

README

File Path

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveEmpty

func RemoveEmpty(dir string)

RemoveEmpty walks a file system hierarchy and removes all directories with no files.

func WriteFile

func WriteFile(name string, data []byte) error

WriteFile writes data to the named file, creating it and directories if necessary. If the file does not exist, WriteFile creates it with permissions perm (before umask); otherwise WriteFile truncates it before writing, without changing permissions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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