I am trying to list windows file names in sequential order but for some reason, python is displaying the file names in the following order. The 100's are displayed before the lower numbers.
Code:
import os
os.chdir('I:\SEGY\C37572')
for g in os.listdir():
print(g)
Output:
C37572_0001.segd
C37572_00010.segd
C37572_000100.segd
C37572_000101.segd
C37572_0002.segd
C37572_0003.segd
C37572_0004.segd
C37572_0005.segd
C37572_0006.segd
C37572_0007.segd
C37572_0008.segd
C37572_0009.segd