0
주 docpad.coffee
에서 {relativeDirPath: {'$in' : ['posts']}
은 표준 작업입니다.패턴 일치를 사용하여 경로에서 컬렉션을 얻는 방법?
그러나 {relativeDirPath: {'$in' : ['posts', /post\/[0-9]+/ ]}
은 그렇지 않습니다.
/src/documents/posts/blah-blah.html
/src/documents/post/12345678/foo-bar-baz.html
/src/documents/post/62347878/woop-woop.html
을 ... 그리고 relativeDirPath
에 일치하는 패턴을 사용하여 이동하는 방법이있을 것 같다
posts
컬렉션에 추가 할 다음 디렉토리 구조에있는 파일을 얻기 위해 노력하고 있어요. 그러나 해당 파일 중 하나와 일치하지 않습니다. 어떻게하면됩니까?