Idle thought: has there been any consideration for...
# development
b
Idle thought: has there been any consideration for adding an API for
Digest
manipulation where you chain the various filesystem manipulations and then await a single operation sequence?
f
I’ve had need for a more powerful ability to rename files within a digest. AddPrefix/RemovePrefix is useful but not enough in some situations.
I think the need for a more powerful API has not arisen consistently before now. Your work is probably causing that need to arise consistently.
b
Interesting, I’ll keep it in mind then
h
Yes, Stu has proposed the need for something much more flexible, which we all want but no one has figured out how to model. Please do share any thoughts you have
w
a strawdesign would be for it to be a series of imperative commands like a bash script:
Copy code
mv $x $y
rm $a
…but described as a struct:
Copy code
RestructuredDigest([
  Mv("x", "y"),
  Rm("a"),
])
👍 1