| 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 eb7828e1e9bef59734259dcb80c6e70c6ee901c9..ec44c1e6e7f6bf02507e3ca488cc4e1b600852f8 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/directory_model.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/directory_model.js
|
| @@ -173,6 +173,18 @@ DirectoryModel.prototype.updateSelectionAndPublishEvent_ =
|
| DirectoryModel.prototype.onWatcherDirectoryChanged_ = function(event) {
|
| var directoryEntry = this.getCurrentDirEntry();
|
|
|
| + // If the change is deletion of currentDir, move up to its parent directory.
|
| + directoryEntry.getDirectory(directoryEntry.fullPath, {create: false},
|
| + null,
|
| + function() {
|
| + var volumeInfo = this.volumeManager_.getVolumeInfo(directoryEntry);
|
| + if (volumeInfo) {
|
| + volumeInfo.resolveDisplayRoot().then(function(displayRoot) {
|
| + this.changeDirectoryEntry(displayRoot);
|
| + }.bind(this));
|
| + }
|
| + }.bind(this));
|
| +
|
| if (event.changedFiles) {
|
| var addedOrUpdatedFileUrls = [];
|
| var deletedFileUrls = [];
|
|
|