filesystem

package
v0.0.0-...-2db02be Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentDir

func GetCurrentDir() string

Get Current Directory

func GetExtension

func GetExtension(filename string) string

Check file type

func IsExexcutable

func IsExexcutable() bool

func IsHidden

func IsHidden(filename string) bool

Check if files is hidden TODO: Windows Support

Types

type FileItem

type FileItem struct {
	Info      fs.FileInfo
	Extension string
	Hidden    bool
}

func GetFiles

func GetFiles(path string) []FileItem

Get Files from Directory

func ToFileItems

func ToFileItems(files []fs.FileInfo) []FileItem

Jump to

Keyboard shortcuts

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