fileinfo

package module
v0.0.0-...-b9a695b Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 4 Imported by: 1

README

FileInfo

This package contains two functions for get information about of a file, this has support for unix and windows system.

This package was created for use it in the EDteam's course Go desde Cero

  • IsHidden: returns if a file is hidden
    IsHidden(route)
  • GetUserAndGroup: returns the user name and group name of an file, for windows always returns empty. You need pass as argument a fs.FileInfo.Sys() value
    GetUserAndGroup(infoSys)

Disclaimer

This package is only for education use.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserAndGroup

func GetUserAndGroup(infoSys any) (userName, groupName string)

GetUserAndGroup returns the user name and group name of an unix file

func IsHidden

func IsHidden(filename string) bool

IsHidden returns if the unix file is hidden

Types

This section is empty.

Jump to

Keyboard shortcuts

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