mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-07-16 00:00:04 +08:00
9 lines
176 B
Python
9 lines
176 B
Python
import os
|
|
import os.path
|
|
|
|
for root, dirs, files in os.walk('.'):
|
|
for f in files:
|
|
fname = os.path.splitext(f)[0]
|
|
os.mkdir(fname)
|
|
os.rename(f, fname + '/index.ts')
|