Page 1 of 1

File attributes lost with Zip and CopyFile

Posted: Fri Feb 26, 2021 3:39 pm
by jPV
If you unpack files with the Zip plugin and the CopyFile() function, the unpacked files don't have ANY protection bits set (list shows it like --------). So the files aren't readable, deletable, writable, or executable. Tested on MorphOS.

Code: Select all

@REQUIRE "zip", {InstallAdapter = True} 
CopyFile("ram:test.zip", "ram:")

Re: File attributes lost with Zip and CopyFile

Posted: Sun Feb 28, 2021 11:20 am
by airsoftsoftwair
Right, this is fixed now. Thanks for reporting!

Code: Select all

- Fix: File attributes weren't set correctly when unpacking files via CopyFile()

Re: File attributes lost with Zip and CopyFile

Posted: Mon Nov 21, 2022 12:38 am
by evil
Is this fix already published in Hollywood 9.1?
When Copying files from inside a zip-archive I still have no FileAttributes set on the extracted files. Not on OS4.1/HW9.1 nor on Android Hollywoodplayer 9.1.

Also I cannot find any informations about this fix in the Historys of Hollywood 9.1 or the ZIP plugins.
Best regards

George

Re: File attributes lost with Zip and CopyFile

Posted: Wed Nov 23, 2022 11:47 pm
by airsoftsoftwair
evil wrote: Mon Nov 21, 2022 12:38 am Is this fix already published in Hollywood 9.1?
It's not a bug in Hollywood but in the zip plugin but I haven't released the update of the zip plugin yet. Guess it's time to do that soon...

Re: File attributes lost with Zip and CopyFile

Posted: Sat Nov 26, 2022 11:32 pm
by evil
me too :)

Re: File attributes lost with Zip and CopyFile

Posted: Sun Dec 18, 2022 11:44 am
by airsoftsoftwair
Version 1.2 of the ZIP plugin has been released now. See here.

Re: File attributes lost with Zip and CopyFile

Posted: Sun Dec 18, 2022 6:56 pm
by evil
Great!! Thank you!!