Fork me on GitHub
#boot
<
2015-10-20
>
thosmos01:10:52

I just forked @dnolen's om-next-demo and created a boot script for it. It has server code auto-reload using @danielsz's System https://github.com/thos37/om-next-demo

cigitia02:10:32

Let’s say that I’m running a shell command (like node) in a task, and this shell command expects a certain file structure. However, Boot only passes virtual filesets to Boot tasks, which the shell command would not understand. Is there a way to create something like a temporary directory that has actual copies of all the files in a certain part of the virtual fileset, just for this shell command to read?

cigitia02:10:04

I suppose I could make a tmp-dir, filter the input fileset for the files that I need, and then copy each of them into the tmp-dir

alandipert02:10:28

that's how i would do it

cigitia02:10:50

Right, thanks; typing the problem up made it clearer to me, heh.

cigitia02:10:00

This might be a useful core API function in general, but it shouldn’t be too hard to do manually too.

alandipert02:10:59

it copies something from the fileset into a directory, preserving the dir hierarchy

cigitia02:10:24

Ah, I see how this works. Thanks!

cigitia03:10:14

Is there a way to filter a fileset’s files for all descendants of a given directory, without resorting to file-filter?