From 4cb6e912014cf0b55eee250846b9bf7b7633aa8a Mon Sep 17 00:00:00 2001 From: John Hess Date: Tue, 25 Jun 2024 11:42:01 -0500 Subject: [PATCH] hide .dotfiles --- assets/js/butter-dir-listing.js | 16 +++++++++------- simulated-usb-butter/Learn/index.html | 6 ++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/assets/js/butter-dir-listing.js b/assets/js/butter-dir-listing.js index 37361d3..0ba70ba 100644 --- a/assets/js/butter-dir-listing.js +++ b/assets/js/butter-dir-listing.js @@ -101,13 +101,15 @@ function extractDirectoryListing(doc) { }); } } else { - files.push({ - name: name, - lastModified: lastModified, - size: size, - type: type, - href: href - }); + if (!name.startsWith('.')) { + files.push({ + name: name, + lastModified: lastModified, + size: size, + type: type, + href: href + }); + } } }); diff --git a/simulated-usb-butter/Learn/index.html b/simulated-usb-butter/Learn/index.html index b3927b9..f062927 100644 --- a/simulated-usb-butter/Learn/index.html +++ b/simulated-usb-butter/Learn/index.html @@ -35,6 +35,12 @@ layout: empty -   Directory + + .DS_Store + 2024-Jun-12 14:44:15 + 3.2K + who/knows + Digital Safety Intro.pdf 2024-Jun-12 14:44:15