@node Релиз 4.2.0
@subsection Релиз 4.2.0
@itemize
+@item Дубликаты имён файлов имеют суффикс @file{.CTR}, вместо
+ @file{CTR}, чтобы избежать возможных коллизий с @file{.nncp.chunkCTR}.
@item По умолчанию файлы и директории создаются с 666/777 правами
доступа, позволяя управлять ими @command{umask}-ом.
@item Обновлены зависимости.
@node Release 4.2.0
@section Release 4.2.0
@itemize
+@item Duplicate filenames have @file{.CTR} suffix, instead of
+ @file{CTR}, to avoid possible collisions with @file{.nncp.chunkCTR}.
@item Files and directories are created with 666/777 permissions by
default, allowing control with @command{umask}.
@item Updated dependencies.
}
log.Fatalln(err)
}
- dstPath = dstPathOrig + strconv.Itoa(dstPathCtr)
+ dstPath = dstPathOrig + "." + strconv.Itoa(dstPathCtr)
dstPathCtr++
}
if err = os.Rename(tmp.Name(), dstPath); err != nil {
isBad = true
goto Closing
}
- dstPath = dstPathOrig + strconv.Itoa(dstPathCtr)
+ dstPath = dstPathOrig + "." + strconv.Itoa(dstPathCtr)
dstPathCtr++
}
if err = os.Rename(tmp.Name(), dstPath); err != nil {
expected := make(map[string]struct{})
expected["samefile"] = struct{}{}
for i := 0; i < files-1; i++ {
- expected["samefile"+strconv.Itoa(i)] = struct{}{}
+ expected["samefile."+strconv.Itoa(i)] = struct{}{}
}
for _, filename := range dirFiles(incomingPath) {
if _, exists := expected[filename]; !exists {