Create a folder and a file inside it, in the root directory of a device

I am trying to create a folder in root directory and create an excel file inside it.

Has anybody done this before or anybody has any idea? I have tried file plugin but not successful.