anchor.diff:          status.size = data.size;
           status.modificationTime = data.modificationTime.millisecondsSinceEpoch;
           store.index.updateIndexForEntry(status);
  -        return store.index.getStatusForEntry(entry);
  +
  +      });
  +    }).then((_) {
  +      return _updateParent(store, entry).then((_) => status);
  +
  +    });
  +  }
  +
  +  static Future _updateParent(ObjectStore store, chrome.Entry entry) {
  +    print('up parent');
  +    return entry.getParent().then((chrome.DirectoryEntry root) {
  +      print(root.fullPath);
  +      return FileOps.listFiles(root).then((entries) {
  +        bool isChanged = entries.any((entry) {
  +          FileStatus status = store.index.getStatusForEntry(entry);
  +            return status != null && status.type != FileStatusType.COMMITTED;
  +        });
  +        FileStatus status = FileStatus.createForDirectory(root);
  +        if (isChanged) {
  +          status.type = FileStatusType.MODIFIED;
  +        } else {
  +          status.type = FileStatusType.COMMITTED;
  +        }
  +        store.index.updateIndexForEntry(status);
  +        print('asdf');
  +        if (root.fullPath != store.root.fullPath) {
  +          return _updateParent(store, root);
  +        }
         });
       });
     }
  
positive.code:    * Return the status for an individual file entry.
     */
    static Future<FileStatus> getFileStatus(ObjectStore store,
        chrome.ChromeFileEntry entry) {
      return entry.getMetadata().then((chrome.Metadata data) {
        FileStatus status = store.index.getStatusForEntry(entry);
        if (status != null &&
            status.modificationTime == data.modificationTime.millisecondsSinceEpoch) {
          // Unchanged file since last update.
  
negative.code:         return status;
        }
  
        if (entry.isDirectory) {
          return status;
        }
  
        // TODO(grv) : check the modification time when it is available.
        return getShaForEntry(entry, 'blob').then((String sha) {
          status = new FileStatus();
  