IsSystemFile checks if a filename is a common system file that should be ignored Returns true for files like .DS_Store, desktop.ini, Thumbs.db, and Apple Double files (._*)
(filename string)
| 189 | // IsSystemFile checks if a filename is a common system file that should be ignored |
| 190 | // Returns true for files like .DS_Store, desktop.ini, Thumbs.db, and Apple Double files (._*) |
| 191 | func IsSystemFile(filename string) bool { |
| 192 | // Common system files |
| 193 | switch filename { |
| 194 | case ".DS_Store", "desktop.ini", "Thumbs.db", "@eaDir": |
| 195 | return true |
| 196 | } |
| 197 | |
| 198 | // Apple Double files (._*) |
| 199 | if strings.HasPrefix(filename, "._") { |
| 200 | return true |
| 201 | } |
| 202 | |
| 203 | return false |
| 204 | } |
no outgoing calls