Hello,
I have an old (OH 2.5) rule where I parse a file within al folder.
In OH3 the “executeCommandLine” are not working any more, allthough I tried to adapt them to OH3.
They now look:
var String result
result = executeCommandLine(Duration.ofSeconds(1),"stat -t -c%Z /var/tmp/tdrm.log")
I need to check if a the file /var/tmp/tdrm.log is younger than e.g. 60s.
How can I do that?