Moving files from internal to sd card

Post your questions and help other users.

Moderator: Martin

Post Reply
den7
Posts: 1
Joined: 29 Dec 2018 16:35

Moving files from internal to sd card

Post by den7 » 29 Dec 2018 18:41

Hi, would like some help in moving some image files (jpg). The default folder that Facebook app creates is under 'DCIM' which includes it as part of my automatic photo back up through Google Photos, so I want to have the file moved to my external sd card as soon as the image is saved.

I tried using the following:
Trigger: File Observer - path DCIM/Facebook, event types modify, writable file closed, subfile created
Action: Move Files - source files DCIM/Facebook/*.jpg, target to my external sd card /Pictures/Facebook

Now when I save a photo, the file gets moved, however there is a notification of "Error: could not delete file ..(file name).jpg" "Last executed: Action move files...".

Upon checking my external sd card, it has moved multiple copies of the same file. So I see for example, abc.jpg, abc (1).jpg, abc(2).jpg.

In the log it says:
Error: ch.gridvision.ppam.androidautomagiclib.util.m: Could not create directory '(my sdcard)/Pictures/Facebook/Facebook'

How can I fix? Thank you.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Moving files from internal to sd card

Post by Desmanto » 30 Dec 2018 14:24

Do you grant external Sdcard access already to Automagic? Automagic Settings > Features & Permissions > External SD Card Access. Choose the SDcard from the document provider. (you might need to tap 3 dot option > unhide SDcard).

When the Google Photos backup happens? Rather than using Trigger File Observer, it is better to do it in bulk, just several minutes before the google photos backup occur. Or simply exclude this folder from the Google photo backup folder.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply