System.Zip.TZipFile.IsValid
Delphi
class function IsValid(const ZipFileName: string): Boolean; overload; static;
class function IsValid(Stream: TStream): Boolean; overload; static;
C++
static bool __fastcall IsValid(const System::UnicodeString ZipFileName)/* overload */;
static bool __fastcall IsValid(System::Classes::TStream* Stream)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Zip.pas System.Zip.hpp |
System.Zip | TZipFile |
Description
Determines whether a specified file is a valid .zip file.
IsValid is a class procedure that returns True if the file specified by ZipFileName
is a valid .zip file.
Note: Now IsValid accepts Stream variables, allowing to read from or write to various kinds of storage media.