Browse Source

* support unzip of specified files

git-svn-id: trunk@7528 -
peter 18 years ago
parent
commit
eeb3d39bba
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/fcl-base/src/inc/zipper.pp

+ 3 - 1
packages/fcl-base/src/inc/zipper.pp

@@ -1370,7 +1370,9 @@ Begin
       For I:=0 to FZipEntries.Count-1 do
         begin
           Item:=FZipEntries[i] as TZipItem;
-          UnZipOneFile(Item);
+	  if (FFiles=nil) or
+	     (FFiles.IndexOf(Item.Name)<>-1) then
+            UnZipOneFile(Item);
         end;
     Finally
        CloseInput;