File.IsFile

Syntax:

IsFile()

Returned value:

Type: Boolean.
True indicates that the object corresponds to a file; otherwise it is false False.

Description:

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

Availability:

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

Note:

This is the opposite of the IsDirectory() method 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 Selection.IsFile() Then
    DoMessageBox("Point the catalog!");
EndIf
;

See also:

File, method BeginCheckingIsFile

    

1C:Enterprise Developer's Community