Microsoft SDK for Java

fileExists

The fileExists method of the ClientStore Class contains the following signatures:

fileExists(String stgfilename)
fileExists(String stgfilename, int flags)

fileExists(String stgfilename)

Determines whether the specified file exists.

Syntax

public boolean fileExists(String stgfilename) throws IOException;

Return Value

Returns true if the file exists; otherwise, returns false.

Parameters

stgfilename The name of the file whose existence is being determined.

Exceptions

IOException if the specified file is a directory.

fileExists(String stgfilename, int flags)

Determines whether the specified file exists.

Syntax

public boolean fileExists(String stgfilename, int flags) throws IOException;

Return Value

Returns true if the file exists; otherwise, returns false.

Parameters

stgfilename The name of the file whose existence is being determined.
flags A value that indicates the storage area in which to search for stgfilename. This value should be one or both of the STORE_FL_LOCAL and STORE_FL_ROAMING flags.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.