-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnamesCleaner.py
More file actions
39 lines (30 loc) · 1.48 KB
/
namesCleaner.py
File metadata and controls
39 lines (30 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import os
import glob
###os.chdir("C:\Users\Fadi\Dropbox\SharedWithMe\Android\AbeerAPKs")
##os.chdir("C:\Users\Fadi\Dropbox\SharedWithMe\Android\DropboxApps")
##for files in glob.glob("*.apk"):
## print files
##
###for filename in os.listdir("C://Users//Fadi//Dropbox//SharedWithMe//Android//AbeerAPKs"):
##for filename in os.listdir("C:\Users\Fadi\Dropbox\SharedWithMe\Android\DropboxApps"):
## if(filename.isspace()):
## print filename
## os.rename(filename, filename.replace(' ',''))
##
##
##os.chdir("C:\Users\Fadi\Dropbox\SharedWithMe\Android\DropboxApps")
##for files in glob.glob("*.apk"):
## print files
startingDir = os.getcwd() # save our current directory
#testDir = "C:\\Users\\Fadi\\Dropbox\\Android\\dex2jar-0.0.9.12" # note that \ is windows specific, and we have to escape it
#testDir = "C:\\Users\\Fadi\\Dropbox\\Android\\dex2jar-0.0.9.12"
testDir = "C:\\Users\\Fadi\\Dropbox\\Fadi Mohsen\\Mobile WebViews References\\Example\\dex2jar-0.0.9.12"
os.chdir(testDir) # change to our test directory
#path = "C:\\Users\\Fadi\\Dropbox\\SharedWithMe\\Android\\DropboxApps"
path = "C:\\Users\\Fadi\\Desktop\\DropboxApps"
#os.chdir("C:\Users\Fadi\Dropbox\SharedWithMe\Android\OldInput")
#for files in glob.glob("C:\Users\Fadi\Dropbox\SharedWithMe\Android\DropboxApps\*.apk"):
for files in glob.glob("C:\Users\Fadi\Desktop\DropboxApps\*.apk"):
print 'processing ' , files
os.system("dex2jar " + files)
os.chdir(startingDir) # change back to where we started