github.com/dastoori/higgs

A tiny cross-platform Go library to hide/unhide files and directories


Keywords
directory, file, file-handling, fs, go, golang, hidden, hidden-files, hide, hide-files, hide-folder, higgs, macos, ubuntu, unix, windows
License
MIT
Install
go get github.com/dastoori/higgs

Documentation

higgs

A tiny cross-platform Go library to hide or unhide files and directories

unix windows codecov GitHub release
Go Reference GitHub go.mod Go version Go Report Card GitHub Mentioned in Awesome Go

Installation

$ go get github.com/dastoori/higgs

Usage

package main

import (
	"fmt"
	"github.com/dastoori/higgs"
)

func main() {
	err := higgs.Hide("foo.txt")
	
	if err != nil {
		fmt.Println(err)
	}

	err = higgs.Unhide("foo.txt")
	
	if err != nil {
		fmt.Println(err)
	}
}

License

MIT