This topic was automatically generated from Slack. You can find the original thread here.
If I’m using a file descriptor to pass a file reference between workflows, is there (or should there be) a way to get the file’s name? The file descriptor object itself has a path property, but this is not documented anywhere.
I figured I shouldn’t read the descriptor object directly since it’s undocumented (and thus more likely to change), so I’m passing the filename as another value. But it might make sense for the File object to have a documented method or property to return its name.
Interesting. The API documents $.files.openDescriptor() but it isn’t clear when this needs to be used if descriptors are “automatically parsed back into a File instance” when passed into another step. Maybe this only takes place under certain conditions, or openDescriptor should be private?
I’m actually using openDescriptor now from my other workflow because I didn’t realize or try the automatic behavior, so I’m not sure if it works in that scenario. Anyway, looking forward to this feature getting some more robust documentation