fix for osx, added compilerdirective to addSkipBackupAttributeToItemAtURL