[Python] How to ask the user for a specific path to be used with open()?

Discussão em 'Python' iniciado por Stack, Maio 4, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to build a file transfer system with python3 sockets. I have the connection and sending down but my issue right now is that the file being sent has to be in the same directory as the program, and when you receive the file, it just puts the file into the same directory as the program.

    How can I get a user to input the location of the file to be sent and select the location of the file to be sent to?

    Continue reading...

Compartilhe esta Página