Verify a directory is shared from command line

Hello,

I’m creating a bash script and I would like to do a Docker precheck, I can get how much memory Docker has assigned but I would also like to know whether or not a directory has been added to the File Sharing configuration.

Is there a command in Mac, that I could use to test, list or verify this list/folders in any way?

Thank you very much!