do you mean from a snap package ? there is no interface for general disk access, a snap will only be able to access certain bits of the filesystem in context of its own sandboxing …
the list of environment variables that point to writable locations on disk is in: