In the nicest way... you're sounding a bit like someone who has been asked to sort a Moodle problem without ever having seen Moodle.
It's possible to configure Moodle to use email addresses as a username. But I don't think that's what you're asking. I'm not sure what you are asking.
Moodle doesn't (really) have file sharing for ordinary users. It's not what it's for or does. So, again, I'm struggling to understand what your concern is.