* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-import { join } from 'path'
import { Permission, Node, FileType, View, FileAction, DefaultType } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
import FolderSvg from '@mdi/svg/svg/folder.svg?raw'
&& (node.permissions & Permission.READ) !== 0
},
- async exec(node: Node, view: View, dir: string) {
+ async exec(node: Node, view: View) {
if (!node || node.type !== FileType.Folder) {
return false
}
window.OCP.Files.Router.goToRoute(
null,
{ view: view.id, fileid: node.fileid },
- { dir: join(dir, node.basename) },
+ { dir: node.path },
)
return null
},