I’ve been recently learning Python and started my practice by rewriting my MEL scripts.
One of them was a backup file script which queried the last modified file and saved it in a desirable folder.
For now I’m stuck with something probably very easy but got annoyed after
some hours and seeking for help Could you please tell me how to store float data
back into a list and get the max number assigned to the file? Now I’m only getting
the last position from the array or getting and error when using the max() function.
I’ve checked this topic but found no solution.
import maya.cmds as cmds
scriptPath = cmds.internalVar(usd=True)
fileList = cmds.getFileList(fld=scriptPath)
def getTimeModif (filesFolder, fileList):
timelist = 
for file in fileList:
timeList = os.path.getmtime(filesFolder + file)
test = getTimeModif (scriptPath, myFiles)