Help finding parent folder of version stack

I’m looking for a way to get the parent folder ID of a file in a version stack. For files not in version stacks, the parent ID is the folder the file is in. For files that are in version stacks, the parent ID is the version stack. When I query the version stack to list its children, the parent IDs for the children are the version stack (which makes sense), but is there a way to get the parent folder of the version stack itself?

hi @spencerframe good catch, I don’t see a way to do this if the version stack is not at the root folder of the project itself (in which the project root_folder_id will be the folder’s id) I asked about this to the eng team and it has already been identified and is being worked on. I will let you know when it deploys to production.