When adding an external source to Assets like S3, the database doesn't store that directory. So I am unable to figure out what the file directory number is. I am using the {exp:assets:folders} tag pair with the parent_folder parameter. To use this parameter I need the file directory number for {filedir_X}. Because when using Assets on the front-end I am using Segments to changes the directory.
Is there a way to get that directory number?