In Delphi XE4 > Project > Deployment I have a reference to a file called "res.zip" It is set to be placed at remote path "res.zip"
However, "FileExists" returns false in underneath code (Running in iOS 6.1 simulator):
procedure TFormMain.InitCreate_Uncompress;
var
H: string;
P: string;
Z: TZipFile;
begin
H := GetHomePath;
P := H + PathDelim + 'res.zip';
if FileExists(P) then
begin
Z := TZipFile.Create;
try
Z.Open(P, zmRead);
Z.ExtractAll(H + PathDelim + 'Library');
finally
Z.Free;
end;
end
;
end;
if FileExists
line and look at the exact value inP
, what do you see? - Ken White