mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-24 22:53:52 +02:00
сделал LoadEnv_from_file()
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type File struct {
|
||||
@@ -86,7 +87,7 @@ func FindFoldersTree(dir string, NeedFolders, NeedFiles, NeedDot bool, MassExclu
|
||||
}
|
||||
|
||||
// проверка скрытые файлы с точкой
|
||||
if NeedDot == false && len(Name) > 0 && Name[0:1] == "." {
|
||||
if NeedDot == false && strings.HasPrefix(Name, ".") {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user