lib/config, lib/model: Make sure to hide our special files (fixes #4382)
The folder marker conversion forgot to hide the .stfolder. This adds that, for those who have not yet been converted. Also adds Hide() calls to the folder start, to mend historical unhidedness. (I'm sure this will upset someone who is manually managing their .stignores in the other direction...) GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4384
This commit is contained in:
committed by
Audrius Butkevicius
parent
59ebcea356
commit
3ee12464b4
@@ -392,6 +392,7 @@ func convertV22V23(cfg *Configuration) {
|
||||
err = fs.Remove(".stfolder")
|
||||
if err == nil {
|
||||
err = fs.Mkdir(".stfolder", permBits)
|
||||
fs.Hide(".stfolder") // ignore error
|
||||
}
|
||||
if err != nil {
|
||||
l.Fatalln("failed to upgrade folder marker:", err)
|
||||
|
||||
Reference in New Issue
Block a user