Version: 2018.2
public bool isFolder ;

説明

アセットがフォルダーの場合 true を返します