         let documentsPath = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0]
         
         var documentsURL = NSURL(string: documentsPath)!
+        documentsURL = documentsURL.URLByAppendingPathComponent(UploadFailureTracker.FailedDescriptorsArchiveKey)
         documentsURL = documentsURL.URLByAppendingPathComponent(name)
         
         if NSFileManager.defaultManager().fileExistsAtPath(documentsURL.path!) == false


@objc class UploadFailureTracker: NSObject
{
    private let FailedDescriptorsArchiveKey = "failed_descriptors"

    // MARK: 
    

        return KeyedArchiver(basePath: documentsURL.path!)
    }
    
    private func loadFailedDescriptors() -> [VideoUri: Upload2Descriptor]
    {
        return self.archiver.loadObjectForKey(UploadFailureTracker.FailedDescriptorsArchiveKey) as? [VideoUri: Upload2Descriptor] ?? [:]
    }
    
    private func saveFailedDescriptors()
    {
        self.archiver.saveObject(self.failedDescriptors, key: UploadFailureTracker.FailedDescriptorsArchiveKey)
    }
    
    // MARK: Public API
