1
0
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:
Nikitin Aleksandr
2024-03-15 14:30:47 +03:00
parent 0197147945
commit 30d7c74284

View File

@@ -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
}