mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
Added more API documentation and minor changes
This commit is contained in:
parent
cd840b2bf0
commit
1d862ebd8c
15 changed files with 117 additions and 48 deletions
|
|
@ -23,6 +23,7 @@ func PathExists(path string) (bool, error) {
|
|||
return false, err
|
||||
}
|
||||
|
||||
// Wrapper function to simplify checking if a path is a directory.
|
||||
func IsDirectory(path string) (bool, error) {
|
||||
// This returns an *os.FileInfo type
|
||||
fileInfo, err := os.Stat(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue