directory

package
v0.0.0-...-0b6f532 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsFile

func ContainsFile(dir string) bool

ContainsFile check directory where it contains file or not

func Dirwalk

func Dirwalk(path string) (fullPaths []string, err error)

Dirwalk walk path recursively and return array of directory full path

func GetBasePath

func GetBasePath(path string) (string, error)

GetBasePath extract basepath from regexp path string

example1. value : `^D:/HOGEMOGE/FUGAFUGA/csharp/src/.*/bin/.+/netcoreapp2.2$` result : `D:/HOGEMOGE/FUGAFUGA/csharp/src/`

example2. value : `^D:/PIYOPIYO/ghoasd.*` result : `^D:/PIYOPIYO/`

func IsExists

func IsExists(path string) bool

IsExists checks directory is exists or not

Types

type LatestFile

type LatestFile struct {
	Path    string
	ModTime time.Time
}

LatestFile express pathinfo

func GetLatestFile

func GetLatestFile(dir string, pattern string) (latest LatestFile, err error)

GetLatestFile return latest file in the path

Jump to

Keyboard shortcuts

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