• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Unable to move files

Vernon27

Member
Nov 26, 2012
67
5
Hello All,

I am having a little problem with a simple Tasker Profile.

Specs: Samsung Galaxy Note 3 (SM-N900v) running Android Lollipop (5.0).

Problem: I created the following Profile to copy files from the Pictures/BBM directory to Pictures/BBM/Process directory as noted in the below exported description:

Profile: Move BBM Files (226)
Event: File Modified [ File:/storage/sdcard0/
Pictures/BBM/ ]
Enter: Move BBM Files (227)
<List files in the /storage/sdcard0/Pictures/BBM directory>
A1: List Files [ Dir:/storage/sdcard0/Pictures/BBM/ Match:*.jpg Include Hidden Files:Off Use Root:Off Variable:%listbbmfiles ]
A2: For [ Variable:%listbbmfile Items:%listbbmfiles() ]
A3: Move [ From:%listbbmfile To:pictures/BBM/Process Use Root:Off ]
A4: End For

The respective directories do exist on the Phone itself (Android not longer allows app to write to SDcards after KitKat) and they are not hidden. For the life me me I do not know why the above Tasker Profile does not work. I have attached a screen shot of the error.

Tried Googliing the issue but it seems like all of the articles I have read are 4+ years old and they appear to work but the profiles are running on Android OS before KitKat.

Thanks for your help.

I would not be surprised if the error is a very simple one.
 

Attachments

  • Screenshot_2016-09-18-20-09-44-1.jpg
    Screenshot_2016-09-18-20-09-44-1.jpg
    408.3 KB · Views: 121
This works for me in 6.0 from dir a1 to dir a2 both in the root directory ...

devA (18)
A1: List Files [ Dir:a1 Match:*.jpg Include Hidden Files:Off Use Root:Off Variable:%a1files ]
A2: For [ Variable:%a1files Items:%a1files() ]
A3: Move [ From:%a1files To:a2 Use Root:Off ]
A4: End For

In yours perhaps ...
A1: List Files [ Dir:pictures/BBM Match:*.jpg Include Hidden Files:Off Use Root:Off Variable:%
... or ...
listbbmfiles ]A1: List Files [ Dir:/storage/0/Pictures/BBM/ Match:*.jpg Include Hidden Files:Off Use Root:Off Variable:%listbbmfiles ]



Are the files hidden?

... Thom
 
Last edited:
Upvote 0
I deleted the directories and re-created them via Windows Explore; I did the samething using the Astro File Explore app directly on the device; still not look. I wonder Tasker is getting the subdirectly with 0 in the name. Odd. I will try and use the Terminal server command on the device and see if that works. Its odd I have another Profile that copies directories and it works fine.
 
Upvote 0
It appears to work.

Profile: Move BBM Files (226)
Event: File Modified [ File:/storage/sdcard0/
Pictures/BBM/ ]
Enter: Move BBM Files (227)
<List files in the /storage/sdcard0/Pictures/BBM directory>
A1: List Files [ Dir:/storage/sdcard0/Pictures/BBM Match:*.jpg Include Hidden Files:Off Use Root:Off Variable:%listbbmfiles ]
A2: For [ Variable:%listbbmfile Items:%listbbmfiles() ]
A3: Move [ From:%listbbmfile To:/storage/emulated/legacy/Pictures/BBM/Process Use Root:Off ]
A4: End For

Thanks for your help.
 
  • Like
Reactions: lareya
Upvote 0
So the correction was to include the full path ...
A3: Move [ From:%listbbmfile To:/storage/emulated/legacy/Pictures/BBM/Process Use Root:Off ]

It is worth noting that it is different from how it works on my device/version. It varies from one device/version to another and needs to meet the requirements of the specific device/version. There was a big change in naming in 6.0.

... Thom
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones