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.
Strange behavior with ziping file
Moderator: Martin
Re: Strange behavior with ziping file
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
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 747 times
-
- Posts: 19
- Joined: 16 Jun 2018 21:17
Re: Strange behavior with ziping file
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
Your previous zip files may be got corrupt. New zip files won't have problem i think.
-
- Posts: 19
- Joined: 16 Jun 2018 21:17
Re: Strange behavior with ziping file
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
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.