Copy connected USB media device to current script directory.
Project description
Copy connected USB media device to current script directory. The copy() method will return a list with the path where the USB drive being copied.
DO NOT MISUSE IT FOR STEALING DATA.
The current version can be used only with Python 3. Tested on Windows(10) and Ubuntu(16.04 LTS).
To install (in Ubuntu having both Python2 and Python3 by default):
>>> sudo pip3 install copyusb
To install (in Windows with which has only Python 3 installed):
>>> sudo pip install copyusb
To use (with caution), simply do:
>>> import copyusb >>> copy_result_list = copyusb.copy()
This will return a list with the destination path where the USB media device data has been copied. No matter how many USB media device is connected, this program will copy all of them.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file copyusb-1.1.0.tar.gz
.
File metadata
- Download URL: copyusb-1.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fde3c2522a0ca9bf5bb2b0c818e3e2f3cfe450b146bd7bdd08e9a98fdc2fa8f |
|
MD5 | b0635584f1156ec0b13b726036f442be |
|
BLAKE2b-256 | a46c72b5fa75c8e3989d52d73e2304df7e102b45c78d309fa6cb6f7addb13bb5 |