This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creates a hardlink of files. i.e. two references to the same address similar to symlink/shortcut | |
import os | |
source = input("Enter source of files to duplicate: ") | |
files = os.listdir(source) | |
destination = input("Enter destination to where hardlink copy of files is to be created: ") | |
f = open("hardlink.bat", "w") | |
for file in files: |