[Python] How to create or copy folders to Windows AppData folders Using Python

Discussão em 'Python' iniciado por Stack, Janeiro 31, 2025.

  1. Stack

    Stack Membro Participativo

    Using standard library Python functions like os.makedirs or shutil.copy2, I can put folders inside the %HOME%/AppData/Roaming/MyApp folder but they are invisible to Explorer, Powershell and any other app.

    I know they exist because I can see them via Python using os.path.exists.

    Can someone explain why and/or how to create folders that are accessible using standard library? I have a solution by calling out to subprocess.run(["powershell ..."]) but that's 100% hacky in my opinion.

    Continue reading...

Compartilhe esta Página