filekit

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: AGPL-3.0 Imports: 4 Imported by: 1 module, 1 package

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirs

func CreateDirs(path string, checkIfDirExist bool) error

CreateDirs creates dirs. (It uses 750 permissions)

func DeleteDirs

func DeleteDirs(path string) error

DeleteDirs deletes dirs only if they exist

func DeleteFile

func DeleteFile(path string) error

DeleteFile only if the file exist

func DirExist

func DirExist(path string) bool

DirExist returns whether a directory exist

func FileExist

func FileExist(path string) bool

FileExist returns whether a file exist.

func ReadFile

func ReadFile(path string) ([]byte, error)

ReadFile read the file from path.

func WriteToFile

func WriteToFile(path string, content []byte) error

WriteToFile writes content to path. (It uses 600 permissions)

Types

This section is empty.

Jump to

Keyboard shortcuts

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