Skip to content

Instantly share code, notes, and snippets.

@joel122002
joel122002 / adbcopy.py
Created February 25, 2023 16:41
Creates a list of all directories and files to pull each individually
# adb shell find /sdcard/ -type f > _temp
# adb shell find /sdcard/ -type d > _tempdirs
f = open("dirs.bat", "a")
with open('_tempdirs') as my_dir:
for line in my_dir:
f.write(f'mkdir ".{line[:-1]}"\n')
f.close()
f = open("copy.bat", "a")
@joel122002
joel122002 / winhardlink.py
Created February 25, 2023 16:37
Creates hard links of all files in source directory in destination directory.