diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-02-01 16:40:41 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-02-01 16:44:55 +0000 |
| commit | 2e213550b5850aecb64f574cb1312bfe78f68750 (patch) | |
| tree | 682e60b1a34fc53a9f91b55e7def7e2ada0a2df5 | |
| parent | static rendering root prefix (diff) | |
| download | mmm-2e213550b5850aecb64f574cb1312bfe78f68750.tar.gz mmm-2e213550b5850aecb64f574cb1312bfe78f68750.zip | |
ignore facet names starting with dots (fs)
| -rw-r--r-- | mmm/mmmfs/stores/fs.moon | 4 |
1 files changed, 3 insertions, 1 deletions
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}!" |
