Skip to content

Commit

Permalink
Rewrite capabilities method using passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
mahsa shadi committed Aug 1, 2022
1 parent 4b8d614 commit a731381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/adapters/vfs/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ const methods = (core, request) => {
.then(({body}) => body);

return {
capabilities: ({path}, options) => request('capabilities', {
path,
options
}, 'json').then(({body}) => body),
capabilities: passthrough('capabilities'),

readdir: ({path}, options) => request('readdir', {
path,
Expand Down
1 change: 1 addition & 0 deletions src/vfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const handleDirectoryList = (path, options) => result =>
showHiddenFiles: options.showHiddenFiles !== false,
filter: options.filter
}));

/**
* Get vfs capabilities
*
Expand Down

0 comments on commit a731381

Please sign in to comment.