package module
Version: v0.2.2 Latest Latest

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 5 Imported by: 30


Package gnsys

A helper package for filesystem operations




This section is empty.


This section is empty.


func CleanDir

func CleanDir(dir string) error

CleanDir removes all files from a directory or creates the directory if it is absent.

func ConvertTilda

func ConvertTilda(path string) (string, error)

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

func DirExists added in v0.2.0

func DirExists(path string) (exists bool, empty bool, err error)

DirExists checks if directory exists and if it is empty

func FileExists

func FileExists(f string) (bool, error)

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

func IsDir added in v0.2.0

func IsDir(path string) bool

func IsFile added in v0.2.0

func IsFile(path string) bool

func MakeDir

func MakeDir(dir string) error

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


This section is empty.

Source Files

Jump to

Keyboard shortcuts

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