                 if doc.name is fileName and doc.path is filePath
                     existingFileId    = doc._id
                     existingFileRev   = doc._rev
+                    existingFileTags  = doc.tags
+                    existingFileCrea  = doc.creationDate
                     existingBinaryId  = doc.binary.file.id
                     if new Date(doc.lastModification) >= new Date(fileLastModification)
                         log.info "Unchanged file: #{doc.path}/#{doc.name}"

                            callback()
                        else
                            # Fetch binary via CouchDB API
                            log.info "Downloading binary: #{binaryPath}"
                            client.saveFile binaryUri, binaryPath, (err, res, body) ->
                                console.log err if err?


                else
                    # Create parent folder and touch file
                    mkdirp path.join(remoteConfig.path, doc.path), () ->
                        # Find if binary is already downloaded
                        db.get doc.binary.file.id, (err, binaryDoc) ->
                            if binaryDoc?
                                # And move it to the right path
                                fs.rename binaryDoc.path, name, () ->
                                    binaryDoc.path = name
                                    db.put binaryDoc, (err, res) ->
                                        fs.utimes name,
                                            new Date(doc.creationDate),
                                            new Date(doc.lastModification),
                                            callback
                            else
                                # Otherwise touch the file
                                touch name, () ->
                                    fs.utimes name,
                                        new Date(doc.creationDate),
                                        new Date(doc.lastModification),
                                        callback
        , callback


