Datamodel/data/modified_pictures.py
def reorder(begin):
    '''
    Reorder and rename the files in the specific folder
    '''
    picturesList = list()

    path = "image_"
    files = os.listdir(path)
    for file in files:
        os.rename(os.sep.join([path, file]), os.sep.join([path, str(begin)+'.jpg']))
        begin += 1
    #files = [f for f in files if "jpg" in f]

    Reorder and rename the files in the specific folder
    
Reorder and rename the files in the specific folder
Reorder and rename the files in the specific folder
def reorder(begin):
    picturesList = list()
    path = "image_"
    files = os.listdir(path)
    for file in files:
        os.rename(os.sep.join([path, file]), os.sep.join([path, str(begin)+'.jpg']))
        begin += 1
def reorder ( begin ) : picturesList = list ( ) path = "image_" files = os . listdir ( path ) for file in files : os . rename ( os . sep . join ( [ path , file ] ) , os . sep . join ( [ path , str ( begin ) + '.jpg' ] ) ) begin += 1
Reorder and rename the files in the specific folder
Reorder and rename the files in the specific folder
'''
    Reorder and rename the files in the specific folder
    ''' #files = [f for f in files if "jpg" in f]
begin