I have a particular usecase: I have a folder on a development disc that regularly grows or shrinks anywhere from 1GB to 35GB. Because of this, I want to allocate it to a fixed-size 40 GB zone near the beginning of the disc, so as to avoid its size change impacting the other zones.
I cannot, for the life of me, get it to work. I can
add a gap
after the end all I want, but I can't seem to get the entire zone a fixed size.
This is my code:
FileSelect
DirectoryPath("...")
FileActions
SortByName(Ascending)
AddGap(ZoneBegin + 40Gi)
FileEnd
As you can see, I tried to use AddGap with ZoneBegin, rather than ZoneEnd, but it doesn't work. All this code does is create a gap
after my zone that is 20Gi big.
Any help?

I also tried toying around with variables, but they appear to be re-evaluated from their expression every time they are used, making it impossible to extract the "ZoneBegin" of a given spot.
