Ver a proveniência

ft: 不监听隐藏目录

master
SisMaker há 3 dias
ascendente
cometimento
348134a6f9
1 ficheiros alterados com 12 adições e 12 eliminações
  1. +12
    -12
      fileSync.go

+ 12
- 12
fileSync.go Ver ficheiro

@ -75,18 +75,18 @@ func CollectFile(File string) {
}
func isHidden(path string) bool {
// for i := len(path) - 1; i > 0; i-- {
// if path[i] != '.' {
// continue
// }
// if os.IsPathSeparator(path[i-1]) {
// return true
// }
// }
// if path[0] == '.' {
// return true
// }
return false
for i := len(path) - 1; i > 0; i-- {
if path[i] != '.' {
continue
}
if os.IsPathSeparator(path[i-1]) {
return true
}
}
if path[0] == '.' {
return true
}
return false
}
func isOnlyDir(dirs []string, curDirs string) bool {

Carregando…
Cancelar
Guardar