From 2e213550b5850aecb64f574cb1312bfe78f68750 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sat, 1 Feb 2020 17:40:41 +0100 Subject: ignore facet names starting with dots (fs) --- mmm/mmmfs/stores/fs.moon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mmm/mmmfs/stores/fs.moon b/mmm/mmmfs/stores/fs.moon index edcca3b..3d602c8 100644 --- a/mmm/mmmfs/stores/fs.moon +++ b/mmm/mmmfs/stores/fs.moon @@ -131,8 +131,9 @@ class FSStore extends Store list_facets: (path) => coroutine.wrap -> for entry_name in lfs.dir @root .. path - entry_path = "#{@root .. path}/#{entry_name}" + continue if '.' == entry_name\sub 1, 1 continue if entry_name == '$order' + entry_path = "#{@root .. path}/#{entry_name}" if 'file' == lfs.attributes entry_path, 'mode' entry_name = (entry_name\match '(.*)%.%w+') or entry_name entry_name = entry_name\gsub '%$', '/' @@ -158,6 +159,7 @@ class FSStore extends Store local file_name for entry_name in lfs.dir @root .. path + continue if '.' == entry_name\sub 1, 1 if (entry_name\match "^#{name}$") or entry_name\match "^#{name}%.%w+$" if file_name error "two files match #{name}: #{file_name} and #{entry_name}!" -- cgit v1.2.3