Ignore .DS_Store files when making backups (#4000)

This commit is contained in:
user411 2022-01-21 11:57:38 -07:00 committed by GitHub
parent f438ce2897
commit 3162c1b2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,15 +22,18 @@ object DatadirUtil {
FileUtil.copyDirectory(
source = source,
target = temp,
fileNameFilter = Vector(".*.sqlite$".r,
".*.sqlite-shm$".r,
".*.sqlite-wal$".r,
".*bitcoin-s.log$".r,
".*/seeds/.*".r,
".*/tor/.*".r,
".*/binaries/.*".r,
".*.zip$".r,
tempRE)
fileNameFilter = Vector(
".*.sqlite$".r,
".*.sqlite-shm$".r,
".*.sqlite-wal$".r,
".*bitcoin-s.log$".r,
".*/seeds/.*".r,
".*/tor/.*".r,
".*/binaries/.*".r,
".*.zip$".r,
".*.DS_Store".r,
tempRE
)
)
SQLiteUtil.backupDirectory(source = source,