Index: ui/file_manager/file_manager/foreground/js/directory_model.js |
diff --git a/ui/file_manager/file_manager/foreground/js/directory_model.js b/ui/file_manager/file_manager/foreground/js/directory_model.js |
index 3e8eb4342057405d8b047a58eec3397de33e788e..539d34ea0397d544f6622b715739adf022d7a547 100644 |
--- a/ui/file_manager/file_manager/foreground/js/directory_model.js |
+++ b/ui/file_manager/file_manager/foreground/js/directory_model.js |
@@ -44,7 +44,7 @@ function DirectoryModel(singleSelection, fileFilter, fileWatcher, metadataCache, |
this.onFilterChanged_.bind(this)); |
this.currentFileListContext_ = new FileListContext( |
- fileFilter, metadataCache); |
+ fileFilter, metadataCache, fileSystemMetadata); |
this.currentDirContents_ = |
DirectoryContents.createForDirectory(this.currentFileListContext_, null); |
@@ -834,7 +834,7 @@ DirectoryModel.prototype.createDirectory = function(name, |
then(function(newEntry) { |
// Refresh the cache. |
this.metadataCache_.clear([newEntry], '*'); |
- this.fileSystemMetadata_.notifyEntryCreated([newEntry]); |
+ this.fileSystemMetadata_.notifyEntriesCreated([newEntry]); |
return new Promise(function(onFulfilled, onRejected) { |
dirContents.prefetchMetadata( |
[newEntry], false, onFulfilled.bind(null, newEntry)); |