Table of Contents

TZippyReader.FileExists Method

Returns true if a file exists inside the zip file.

Remarks

To find the filename "test.xml" inside a folder "TestFolder", you need to use:

if (FileExists("TestFolder/test.xml"))...

Note how there isn't a starting slash, and that the name is case sensitive.

if (FileExists("/TestFolder/test.xml")) would return false, as would if (FileExists("testfolder/test.xml"))

An empty folder would be stored as a 0 byte file: 'EmptyFolder/'. Non empty folders are not stored.

Syntax

Namespace: FlexCel.Core

public Boolean FileExists(String aFileName)

Parameters

<-> Parameter Type Description
aFileName String File that you want to find. If the file is in a folder, you must always use a forward slash ("/") to separate folders. The name shouldn't start with a slash. Names are case sensitive. Empty folders are stored as files with zero size and ending in a forward slash. Non empty folders are not stored.

Returns

True if the file exists, false otherwise.

See also