Using the mkdir function, you can create a file in any directory within your computer's folders:
Import os
diretorio = "C:\Users\CRIACAO 2\Desktop\teste"
os.mkdir(diretorio)
But when I try to create it inside the address of a server, the program is not able to find the path indicated:
Import os
diretorio = "\servidor\ARABRINDES 1TB\Artes"
os.mkdir(diretorio)
FileNotFoundError: [WinError 3] The system can not find the path specified: '\ server \ ARABRINDES 1TB \ Arts \ andrei'
How can I resolve this problem?