Page 1 of 1

Strange behavior with ziping file

Posted: 25 Jul 2018 16:19
by lord_EarlGray
Hello,

I want to make flow that will run anytime a .jpg file appears in certain folder. That file needs to be archived in archive with unique name, than this archive needs to be moved to location on google drive and after that both .jpg and archive need to be deleted from mu phone. I have created test flow and I have found strange behavior with that archive. Flow ends with two archives with the same name (one of them of course has additional "(1)" in name) in my google drive. When I'm trying to open both of them it says "Archive is not readable". Flow is in attachment. I hope my description of what I want to do is clear if not, please tell me so I will try to explain it more.

picturebackup.xml
(7.5 KiB) Downloaded 736 times

Re: Strange behavior with ziping file

Posted: 26 Jul 2018 00:53
by anuraag
I have tested your flow. Found that you have created zip file in same directory. Automatic endlessly creating zip for me as everytime new zip file is created. So you should change your zip file destination. Place it in another directory of root folder and it should fixed.

Lets say your source file is placed in
"/storage/6168-1718/Pictures/Test/*"

Put archive file in
"/storage/6168-1718/Pictures/Test1/"

Edit: you can use following as source for zipping files and no need to put archive in different directory

/storage/6168-1718/Pictures/Test/*.jpg

Flow attached

Re: Strange behavior with ziping file

Posted: 26 Jul 2018 11:50
by lord_EarlGray
Thanks for answer! Creating .zip in different directory fixed the problem of this weird matrioshka ;) Still have another problem - after unzipping archives most of the .jpg files are not able to be opened. It says "format not supported".

Re: Strange behavior with ziping file

Posted: 26 Jul 2018 12:26
by anuraag
Your previous zip files may be got corrupt. New zip files won't have problem i think.

Re: Strange behavior with ziping file

Posted: 26 Jul 2018 15:46
by lord_EarlGray
I have deleted all previous archives. Unfortunately newly created archives are fine (no problems with access and unzipping), but files inside are corrupted in 90% I have made lot of tests and only about 10% of .jpg files after unzipping are ok.

Re: Strange behavior with ziping file

Posted: 26 Jul 2018 15:55
by anuraag
I am unable to produce problem here. I have zipped around 30 files containing jpg, png, mp4 files with automagic and unzipped with solid explore. All fine.