File.IsDirectory

Syntax:

IsDirectory()

Returned value:

Type: Boolean.
True indicates that an object corresponds to a directory; otherwise it is False.

Description:

Defines whether a file object corresponds to a directory or a file.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

Applies only to files that actually exist.
To use the method on the web-client, you should preliminarily attach the extension for working with files.

Example:

If Not Selection.IsDirectory() Then
    DoMessageBox("Define a directory!");
EndIf
;

See also:

File, method BeginCheckingIsDirectory

    

1C:Enterprise Developer's Community