ContextToFileName
ContextToFileName["context"] gives the string specifying the file name that is by convention associated with a particular context.
Examples
Get filename for a context:
ContextToFileName["MyPackage`"]
(* "MyPackage.wl" *)Please visit the official Wolfram Language Reference for more details.