      */
     @objc func createDirectoryExcludedFromBackup(at url: URL) throws {
         try createDirectory(at: url, withIntermediateDirectories: true, attributes: nil)
-        try excludeFromBackup(url: url)
+        try excludeItemFromBackup(at: url)
     }
     
     /**

        
        for url in urls where isWritableFile(atPath: url.path) {
            do {
                try excludeFromBackup(url: url)
            } catch {
                MXLog.debug("[FileManager+Backup]: Cannot exclude url from backup: \(error.localizedDescription)")
            }

     Note: some directories are excluded automatically if they are nested within `<AppHome>/Library/Caches/` or `<AppHome>/tmp/`
     see [details](https://developer.apple.com/documentation/foundation/optimizing_app_data_for_icloud_backup).
     */
    @objc func excludeItemFromBackup(at url: URL) throws {
        try (url as NSURL).setResourceValue(true, forKey: .isExcludedFromBackupKey)
    }
    
