fs

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 11

README

File System Utilities in Go 1.18+

Go Version GoDoc License Go Report Card

  • file.Touch
  • file.Exists
  • file.NotExists
  • dir.Entries

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDir

func IsDir(path string) bool

IsDir returns true if the indicated path is a directory. Returns false and logs if unable to determine.

Example
package main

import (
	"fmt"

	"github.com/rwxrob/fs"
)

func main() {
	fmt.Println(fs.IsDir("testdata"))
	fmt.Println(fs.IsDir("testdata/fail"))
}
Output:

true
false

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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