This version of Unity is unsupported.

Asset.isFolder

public bool isFolder;

Description

Returns true if the asset is a folder.