How to move files from src/documents/posts/post1.html
to out/post1.html
without the subfolder posts
appearing in the out directory?
I have a sub directory posts
in my documents
src/
documents/
index.html
contact.html
posts/
post1.html
post2.html
And I want the posts to be in out/post1.html
not out/posts/post1.html
.
Turns out you can set the
relativePath
property to whatever you wantImportantNote:
if you use a
findAllLive
whith a selector that includes therelativePath
and then change therelativePath
, the document will be removed from the collection. Alternatively you can set another flag and use it for finding.