Skip to main content

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


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)

Uploaded Source

Built Distribution

adb_push_create-0.11-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page