ถ่ายโอนไฟล์ผ่าน wifi ระหว่างคอมพิวเตอร์และสมาร์ทโฟนของคุณจากเทอร์มินัล
คุณจะพบเวอร์ชันที่อัปเดตมากที่สุดของ qr-filetransfer ที่นี่ แต่ถ้าคุณต้องการเวอร์ชันที่เสถียรที่สุดให้ใช้ pip เพื่อติดตั้ง
การติดตั้งทั่วโลก
pip3 install qr-filetransfer[extras]
การติดตั้งในท้องถิ่น
pip3 install --user qr-filetransfer[extras]
หากคุณพบปัญหาในระหว่างการติดตั้งลองลบ [extras] เสริมในตอนท้ายของคำสั่ง
# clone the repo
$ git clone https://github.com/sdushantha/qr-filetransfer.git
# change the working directory to qr-filetransfer
$ cd qr-filetransfer
# install the requirements
$ pip3 install -r requirements.txt usage: qr-filetransfer [-h] [--debug] [--receive] [--port PORT]
[--ip_addr {192.168.0.105}] [--auth AUTH]
file_path
Transfer files over WiFi between your computer and your smartphone from the
terminal
positional arguments:
file_path path that you want to transfer or store the received
file.
optional arguments:
-h, --help show this help message and exit
--debug, -d show the encoded url.
--receive, -r enable upload mode, received file will be stored at
given path.
--port PORT, -p PORT use a custom port
--ip_addr {192.168.0.105}
specify IP address
--auth AUTH add authentication, format: username:password
--no-force-download Allow browser to handle the file processing instead of
forcing it to download.
หมายเหตุ: อุปกรณ์ทั้งสองต้องเชื่อมต่อกับเครือข่ายเดียวกัน
การออก
หากต้องการออกจากโปรแกรมเพียงกด CTRL+C
ถ่ายโอนไฟล์เดียว
$ qr-filetransfer /path/to/file.txtถ่ายโอนไดเรกทอรีเต็มรูปแบบ หมายเหตุ: ไดเรกทอรีจะถูกซิปก่อนที่จะถูกถ่ายโอน
$ qr-filetransfer /path/to/directory/รับ/อัปโหลดไฟล์จากโทรศัพท์ของคุณไปยังคอมพิวเตอร์ของคุณ
$ qr-filetransfer -r /path/to/receive/file/to/
แรงบันดาลใจจากโครงการ GO QR-Filetransfer
ใบอนุญาต MIT
ลิขสิทธิ์© 2019 Siddharth Dushantha
ผู้สนับสนุนที่ใช้งานอยู่ - Yu -Chen Lin