initial commit
This commit is contained in:
commit
16137dce12
80 changed files with 1757 additions and 0 deletions
16
import_mess/reorder_index.py
Normal file
16
import_mess/reorder_index.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/python3
|
||||
|
||||
# reorder Index des images
|
||||
import os
|
||||
|
||||
BASE = '../static/files/images/'
|
||||
l = os.listdir(BASE)
|
||||
print(l)
|
||||
|
||||
for e in l:
|
||||
if int(e) >= 1000:
|
||||
os.rename(BASE + e, BASE + str(27+int(e)-1000))
|
||||
if e.zfill(5) != e:
|
||||
os.rename(BASE + e, BASE + e.zfill(5))
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue