awslabs/aws-js-s3-explorer

Question: Hiding specific folders from view.

Gyozomgarg opened this issue · 1 comments

With the current head of main (4de1fd0), I would like to be able to remove a folder from the list of objects similarly to the index.html.
Is there any way to do so?

I have attempted adding the following to hide a folder named static-website-assets after the filter for index.html.

console.log("Filter: remove static-website-assets/");
data.Contents = data.Contents.filter(function(el) {
  return el.Key !== "static-website-assets/";
});

Is there currently any support for this type of functionality or is there a proper way to manually implement it?

I was able to hide the folder by including:
$.fn.dataTableExt.afnFiltering.push((_, data) => data[0] !== "static-website-assets/") after the "hide folders" check and filter.

Hopefully this could be of some use to anyone who may want to do something similar.