creates [nested] folders and pushes files with ADB
Project description
creates [nested] folders and pushes files with ADB
Tested against Windows 10 / Python 3.10 / Anaconda
pip install adb-push-create
from adb_push_create import push_file,make_folders
adb_path = r"C:\ProgramData\chocolatey\bin\adb.exe"
deviceserial = "xxxx"
make_folders(adb_path, deviceserial,path2create='/sdcard/DCIM/0/12/4')
copyok = push_file(
adb_path=adb_path,
deviceserial=deviceserial,
file=r"C:\xdf - Copy.m4v",
dest="/sdcard/DCIM/0/12/4/12/4/5", # path does not exist yet
)
print(copyok)
True
Contribution Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the GitHub repository.
License This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
adb_push_create-0.11.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for adb_push_create-0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2afa59e37ac3eb35d7ca5b27d17169028dd19ef82dee1cfd495075d331e6aa44 |
|
MD5 | cb40244ebfa541f8c8dfa1fde840a8f8 |
|
BLAKE2b-256 | ff2a29ef59beaf5aea0ebdec430c39f670c4920de0e58b0962957ff064739058 |