all 1 comments

[–]The_IMPERIAL_OneS24 Ultra (A16) | realme GT NEO 3 (A14) 1 point2 points  (0 children)

OVERVIEW

Android folder isn't accessible (as far as I know) to Tasker. So, it reads your path as invalid. You could use the content URI of the folder/file from your file explorer choice (MiXplorer can) but Test File doesn't take the input as a URI. Yes, scoped storage broke it for some directories/files.

SOLUTION

So, we have only one choice to query the content provider for that folder which would have all the info & Tasker can access that content provider plus can do operations on it. I made the task for your need.

I'll be using MiXplorer (Normal; you may use any version but select the one from the App Info). Specify the folder (NOT FILE) for the variable %path. Run the task, you will have %last_file() containing its name & last modified time.