Is there a way to detect file mod/creation in folder and sub-folder

262 views
Skip to first unread message

Dave Handler

unread,
Aug 20, 2014, 10:52:36 PM8/20/14
to tas...@googlegroups.com
Hi!

I know Tasker can monitor an individual file change. But is there any way to do the same for a directory and/or subdirectory?

I poked around and the best I saw was looking for a file to be created such as a image from the camera. Really didn't suit my needs.

Thanks for any help!

Dave

Brandon Horwath

unread,
Aug 20, 2014, 11:14:30 PM8/20/14
to tas...@googlegroups.com
Dave,

I didn't believe it either (from documentation) until I checked. In the context, instead of selecting a file, just select a folder (which android treats as a type of file) and it'll work.

The profile will activate when a file in the folder or the folder is modified.

Try it out. Post back any questions.

Hope this helps.

Dave Handler

unread,
Aug 20, 2014, 11:17:43 PM8/20/14
to tas...@googlegroups.com

Do I need a wildcard or just the folder name?

/sdcard/folder/    (possible with no end slash?)

Or

/sdcard/folder/*

Thanks Brandon!

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/o1MP5WXpEyc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Brandon Horwath

unread,
Aug 20, 2014, 11:33:01 PM8/20/14
to tas...@googlegroups.com
I don't think the wild card is needed. When you're in the context, select the magnifying glass and navigate to the directory desired.

If I remember right, long pressing a directory itself will autofill that as the context correctly. Otherwise, pressing a folder navigates into contents, and pressing a file selects contents as context. The long press of the folder was how I stumbled across it... if I recall.

Dave Handler

unread,
Aug 21, 2014, 12:27:11 AM8/21/14
to tas...@googlegroups.com

Yep, got it!

Don't mind making these little backup tasks but I hate the ones that store the backup within the app itself. 😶

On Aug 20, 2014 11:33 PM, "Brandon Horwath" <brandon...@gmail.com> wrote:
I don't think the wild card is needed. When you're in the context, select the magnifying glass and navigate to the directory desired.

If I remember right, long pressing a directory itself will autofill that as the context correctly. Otherwise, pressing a folder navigates into contents, and pressing a file selects contents as context. The long press of the folder was how I stumbled across it... if I recall.

Reply all
Reply to author
Forward
0 new messages