Hello,
I am attempting to grab the latest generated file from a designated location(in json format) and opening it. I can easily retrieve the file directly but am having trouble using the proper keywords for grabbing the latest file via year month day time etc etc
current code:
@{files}= List Files In Directory "Path"
${lastmodifiedfile}= Get From List ${files} 0-
@{time}= Get Modified Time ${files} year,month,day,hour,min,sec
${json_file}= Load JSON From File ${time}
${value}= get value from json ${json_file} $.Data
log to console ${value[0]}
${results}= convert to string ${value}
Append To File "path"
What i am getting is âValueError: Cannot convert index â0-â to an integerâ â could be the fact that I am grabbing a .json. but i am speculating here.
Any assistance is greatly appreciated⌠Thanks