Strange behavior with ziping file

Post your questions and help other users.

Moderator: Martin

Post Reply
lord_EarlGray
Posts: 19
Joined: 16 Jun 2018 21:17

Strange behavior with ziping file

Post by lord_EarlGray » 25 Jul 2018 16:19

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 724 times

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Strange behavior with ziping file

Post by anuraag » 26 Jul 2018 00:53

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
Attachments
flow_Modified_PictureBackupMoveToGoogleDrive_test_20180726_080050.xml
(7.72 KiB) Downloaded 734 times

lord_EarlGray
Posts: 19
Joined: 16 Jun 2018 21:17

Re: Strange behavior with ziping file

Post by lord_EarlGray » 26 Jul 2018 11:50

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".

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Strange behavior with ziping file

Post by anuraag » 26 Jul 2018 12:26

Your previous zip files may be got corrupt. New zip files won't have problem i think.

lord_EarlGray
Posts: 19
Joined: 16 Jun 2018 21:17

Re: Strange behavior with ziping file

Post by lord_EarlGray » 26 Jul 2018 15:46

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.

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Strange behavior with ziping file

Post by anuraag » 26 Jul 2018 15:55

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.

Post Reply