Skip to content

Commit

Permalink
nassh: Fixed bad unmount function reference. Removed symlink support …
Browse files Browse the repository at this point in the history
…(Not supported by ChromeOS anyway).

Change-Id: I2280579b913cd6241bc7de763e8d1b9c9f488aec
Reviewed-on: https://chromium-review.googlesource.com/439789
Reviewed-by: Rob Ginda <[email protected]>
Tested-by: Mitchell McDermott <[email protected]>
  • Loading branch information
Mitchell McDermott committed Feb 10, 2017
1 parent 0430a98 commit fefef13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion nassh/js/nassh_connect_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ nassh.ConnectDialog.prototype.mount = function() {
*/
nassh.ConnectDialog.prototype.unmount = function() {
var options = {fileSystemId: this.currentProfileRecord_.id};
chrome.extension.getBackgroundPage().onUnmountRequested(options,
chrome.extension.getBackgroundPage().
nassh.sftp.fsp.onUnmountRequested(options,
(success) => { this.displayMountButton_(true); },
(error) => { /* do nothing */ });
};
Expand Down
8 changes: 5 additions & 3 deletions nassh/js/nassh_sftp_fsp.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ nassh.sftp.fsp.readDirectory = function(directoryHandle, client, sanitizeOptions

for(var i = 0; i < response.fileCount; i++) {
var file = response.files[i];
if (file.filename == '.' || file.filename == '..') {
// Skip over the file if it's a '.', '..' or link file
if (file.filename == '.' || file.filename == '..' ||
file.permissions & 0x2000) {
continue;
}

Expand Down Expand Up @@ -598,7 +600,7 @@ nassh.sftp.fsp.providerMethods = [

// Loop over the provider methods and link them to their handlers.
if (chrome.fileSystemProvider) {
nassh.sftp.fsp.providerMethods.forEach(function(item) {
chrome.fileSystemProvider[item].addListener(nassh.sftp.fsp[item]);
nassh.sftp.fsp.providerMethods.forEach(function(provider) {
chrome.fileSystemProvider[provider].addListener(nassh.sftp.fsp[provider]);
});
}

0 comments on commit fefef13

Please sign in to comment.