Hi guys, I’m new here. Just start with the pantsbu...
# general
e
Hi guys, I’m new here. Just start with the pantsbuild. Might be a dump question, is that possible to delete a directory in pantsbuild? I can only find the
CreateDigest
h
a dump question sounds like the precursor to a shower thought 😂
😅 2
h
There are no bad questions!
It sounds like you’re writing a plugin?
e
Yes! Plugins to generate something, but I need to cleanup that output directory before I start generating
h
That’s surprising, since typically you’d write into an output directory under the process sandbox, which is fresh every time and so should always be empty
b
I guess if we use output_directories in Process it can clear the directory automatically, but if we use output_files it will only write to those specific files?
h
Not quite.
output_directories
and
output_files
tell the Process where to gather outputs from when it finishes running and has to return outputs to the engine.
Your process is free to write wherever in the sandbox
but an output directory (say literally named
output
) should be empty simply because the sandbox starts out empty, and is populated with just the input digest