mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2026-03-13 11:20:33 +00:00
feat(utils): add support for ignoring '@eaDir' system files (#1779)
This commit is contained in:
@@ -191,7 +191,7 @@ const (
|
||||
func IsSystemFile(filename string) bool {
|
||||
// Common system files
|
||||
switch filename {
|
||||
case ".DS_Store", "desktop.ini", "Thumbs.db":
|
||||
case ".DS_Store", "desktop.ini", "Thumbs.db", "@eaDir":
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ func TestIsSystemFile(t *testing.T) {
|
||||
{"._", true},
|
||||
{"._somefile", true},
|
||||
{"._folder_name", true},
|
||||
{"@eaDir", true},
|
||||
|
||||
// Regular files that should not be filtered
|
||||
{"test.txt", false},
|
||||
|
||||
Reference in New Issue
Block a user