Page 1 of 1

Absolute file path?

Posted: 30 Aug 2015 16:30
by MURTUMA

Code: Select all

Error: ch.gridvision.ppam.androidautomagiclib.util.q: Path '[/storage/emulated/0/Download/022f5ff44ac8bdbf02790524638950dc.jpg' must be an absolute path


I have initialized two file lists in the above path. Then I'm trying to move them to external SD with move file action "{files_jpg},{files_png}". However, I get the error above. What is an absolute path for a file and how should I overcome this error?

Re: Absolute file path?

Posted: 31 Aug 2015 18:55
by Martin
The leftmost bracket is most likely causing the problem. Please try to use {files_jpg,listformat,comma},{files_png,listformat,comma} to build a proper comma separated list.

Re: Absolute file path?

Posted: 01 Sep 2015 08:24
by MURTUMA
Thanks! It works now. Although I had to fix the problem with writing to the external SD first.

Gallery apps and file managers can access it freely with no problems. Would there be something you can do so AM could do that too? I think it's a bit overkill to have an xposed module to fix permissions just for one app.

Re: Absolute file path?

Posted: 03 Sep 2015 19:21
by Martin
Writing to external SD is on my list but I'm not sure when/how I will add it since I don't yet like the options provided by Google.
You can probably also use SD Fix to change the permissions and allow apps to access the external SD card. Optionally you could also write to the directories allowed by Android (use action Script function logExternalFilesDirs() to list all possible directories, beware that Android will likely delete the directories when Automagic is uninstalled).