Microsoft SDK for Java

listFiles

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

listFiles(String stgdir)
listFiles(String stgdir, FilenameFilter filter)
listFiles(String stgdir, int flags)
listFiles(String stgdir, FilenameFilter filter, int flags)

listFiles(String stgdir)

Lists files in the specified directory.

Syntax

public String[] listFiles(String stgdir) throws IOException;

Return Value

Returns the names of the files in the specified directory.

Parameters

stgdir The directory to list files in. If null, the current directory is used.

Exceptions

IOException if the specified directory is not valid.

listFiles(String stgdir, FilenameFilter filter)

Lists files in the specified directory.

Syntax

public String[] listFiles(String stgdir, FilenameFilter filter) throws IOException;

Parameters

stgdir The directory to list files in. If null, the current directory is used.
filter The filter that determines which files to list. File patterns, such as "*.txt", can be specified by using the com.ms.util.WildcardExpression class.

Exceptions

IOException if the specified directory is not valid.

listFiles(String stgdir, int flags)

Lists files in the specified directory.

Syntax

public String[] listFiles(String stgdir, int flags) throws IOException;

Return Value

Returns a String list of the files in the directory.

Parameters

stgdir The directory to list files in. If null, the current directory is used.
flags The listing modifiers for this method. This value should be one or both of LIST_FL_RECURSE and LIST_FL_NO_DIRECTORIES to control the listing behavior, and one or both of STORE_FL_LOCAL and STORE_FL_ROAMING to select the storage area to list files in.

Exceptions

IOException if the specified directory is invalid.

listFiles(String stgdir, FilenameFilter filter, int flags)

Lists files in the specified directory.

Syntax

public String[] listFiles(String stgdir, FilenameFilter filter, int flags) throws IOException;

Return Value

Returns a String list of the files in the directory.

Parameters

stgdir The directory to list files in. If null, the current directory is used.
filter The filter that determines which files to list. File patterns, such as "*.txt," can be specified by using the com.ms.util.WildcardExpression class.
flags The listing modifiers for this method. This value should be one or both of LIST_FL_RECURSE and LIST_FL_NO_DIRECTORIES to control the listing behavior, and one or both of STORE_FL_LOCAL and STORE_FL_ROAMING to select the storage area to list files in.

Exceptions

IOException if the directory is invalid.

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