Skip to content

FileType

Claude edited this page Oct 26, 2026 · 5 revisions

FileType

Command Index · BlitzBasic · Files

FileType file$  ; returns Int

Works in: Blitz2D, BlitzPlus, Blitz3D

Tells what is at a path, so you can check for something before you open it.

Print FileType("files_type_nothing_here")
CreateDir "files_type_folder"
Print FileType("files_type_folder")
DeleteDir "files_type_folder"
0
2
Parameter Type Default Description
file String required The path to look at.

Returns: 0 when nothing is there, 1 for a file, 2 for a folder.

Related commands

Command Index · BlitzBasic · Files

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

Clone this wiki locally