Problem with copyfile() and archive

Find quick help here to get you started with Hollywood
Post Reply
papiosaur
Posts: 217
Joined: Fri Mar 31, 2023 1:34 pm

Problem with copyfile() and archive

Post by papiosaur »

Hello,

i would like to copy a LHA archive to a destination but CopyFile() command extract files...

An idea please ?
User avatar
jPV
Posts: 734
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: Problem with copyfile() and archive

Post by jPV »

You have probably installed the XAD plugin globally with the InstallAdapter option (like @REQUIRE "xad", {InstallAdapter = True}), and that's why it uses XAD for CopyFile() too.

You can now bypass that globally installed adapter by using CopyFile() with the Inbuilt adapter like this:
CopyFile("archive.lha", "destination", {Adapter="Inbuilt"})

Other option is to disable the global adapter and then use {Adapter = "xad"} with CopyFile() only when you really need to extract archives.
papiosaur
Posts: 217
Joined: Fri Mar 31, 2023 1:34 pm

Re: Problem with copyfile() and archive

Post by papiosaur »

Thanks jPV!!!
Post Reply