gnsys

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 5 Imported by: 32

README

Package gnsys

A helper package for filesystem operations

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanDir

func CleanDir(dir string) error

CleanDir removes all files from a directory.

func ConvertTilda

func ConvertTilda(path string) (string, error)

ConvertTilda expands paths with `~/` to an actual home directory.

func FileExists

func FileExists(f string) (bool, error)

FileExists checks if a file exists, and that it is a regular file.

func MakeDir

func MakeDir(dir string) error

MakeDir a directory out of a given unless it already exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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