File attributes lost with Zip and CopyFile

Discuss about plugins that don't have a dedicated forum
Post Reply
User avatar
jPV
Posts: 600
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

File attributes lost with Zip and CopyFile

Post 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:")
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: File attributes lost with Zip and CopyFile

Post 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()
evil
Posts: 175
Joined: Mon Jun 14, 2010 1:38 pm

Re: File attributes lost with Zip and CopyFile

Post 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
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: File attributes lost with Zip and CopyFile

Post 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...
evil
Posts: 175
Joined: Mon Jun 14, 2010 1:38 pm

Re: File attributes lost with Zip and CopyFile

Post by evil »

me too :)
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: File attributes lost with Zip and CopyFile

Post by airsoftsoftwair »

Version 1.2 of the ZIP plugin has been released now. See here.
evil
Posts: 175
Joined: Mon Jun 14, 2010 1:38 pm

Re: File attributes lost with Zip and CopyFile

Post by evil »

Great!! Thank you!!
Post Reply