                 
                 do
                 {
-                       if !fileManager.fileExistsAtPath(directoryPath)
+                    if !fileManager.fileExistsAtPath(directoryPath)
                     {
                         try fileManager.createDirectoryAtPath(directoryPath, withIntermediateDirectories: true, attributes: nil)
                     }

                fatalError("no cache directories found")
            }
            
            // We need to create a directory in `../Library/Caches folder`. Otherwise, trying to remove the Apple /Caches folder will always fails. Note that it's noticeable while testing on a device.
            let cacheDirectory = directory + Constant.cacheDirectory
            
            return NSURL(fileURLWithPath: cacheDirectory)
        }
        
        private func fileURLForKey(key key: String) -> NSURL?

{
    struct Constant
    {
        static let CacheDirectory = "com.vimeo.Caches"
    }
    
    /**
