Accessing "File Preferences" pathname programmatically (in an external)

sletz's icon

I would like to access the pathname of the different folders that are listed in the "File preference" window. Is that possible? I see that "userpath_5" kind of folder can also be added. How to get the pathnames in the external ? Thanks.