Página 1 de 1

TUnzipFile:cDirectory cannot be relative

Publicado: Jue May 15, 2008 9:40 am
por Oleg
Dear developers!
I found that the path in property TUnzipFile:cDirectory cannot be relative.
If I do:
oZip:=TUnzipFile():New()
oZip:cFileName:=cTmpArc
oZip:cDirectory:='ARC'
oZip:Run()
oZip:Free()
the data is always extracted to C:ARC despite of current directory
(C:PROGRAM for example).
Can you check this?
Regards, Oleg

TUnzipFile:cDirectory cannot be relative

Publicado: Vie May 16, 2008 10:19 am
por ignacio
Oleg,
As you can see on the source code (ZipArchive.prg: XunZipFile:Run()) we do
not make any modificaction to cDirectory member and its value is given to
the HB_UnZipFile() XHARBOUR function. So, if there is a bug, surely is on
that function . BTW, I suggest you try with ".ARC"
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:482be8fc$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I found that the path in property TUnzipFile:cDirectory cannot be
> relative.
> If I do:
> oZip:=TUnzipFile():New()
> oZip:cFileName:=cTmpArc
> oZip:cDirectory:='ARC'
> oZip:Run()
> oZip:Free()
> the data is always extracted to C:ARC despite of current directory
> (C:PROGRAM for example).
>
> Can you check this?
>
> Regards, Oleg
>
>

TUnzipFile:cDirectory cannot be relative

Publicado: Vie May 16, 2008 10:19 am
por NoName
Oleg,
As you can see on the source code (ZipArchive.prg: XunZipFile:Run()) we do
not make any modificaction to cDirectory member and its value is given to
the HB_UnZipFile() XHARBOUR function. So, if there is a bug, surely is on
that function . BTW, I suggest you try with ".ARC"
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:482be8fc$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I found that the path in property TUnzipFile:cDirectory cannot be
> relative.
> If I do:
> oZip:=TUnzipFile():New()
> oZip:cFileName:=cTmpArc
> oZip:cDirectory:='ARC'
> oZip:Run()
> oZip:Free()
> the data is always extracted to C:ARC despite of current directory
> (C:PROGRAM for example).
>
> Can you check this?
>
> Regards, Oleg
>
>

TUnzipFile:cDirectory cannot be relative

Publicado: Vie May 16, 2008 11:10 am
por Oleg
Ignacio,
> As you can see on the source code (ZipArchive.prg: XunZipFile:Run()) we do
> not make any modificaction to cDirectory member and its value is given to
> the HB_UnZipFile() XHARBOUR function. So, if there is a bug, surely is on
> that function . BTW, I suggest you try with ".ARC"
It seems that the path must be full. Your suggestion with ".ARC" does not
work too.
Ok, I can workaround it.
Regards, Oleg

TUnzipFile:cDirectory cannot be relative

Publicado: Vie May 16, 2008 11:10 am
por Oleg
Ignacio,
> As you can see on the source code (ZipArchive.prg: XunZipFile:Run()) we do
> not make any modificaction to cDirectory member and its value is given to
> the HB_UnZipFile() XHARBOUR function. So, if there is a bug, surely is on
> that function . BTW, I suggest you try with ".ARC"
It seems that the path must be full. Your suggestion with ".ARC" does not
work too.
Ok, I can workaround it.
Regards, Oleg