--- title: "@FilesOnDisk" ---
This is generated from the built in components of BuildMaster 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Functions within your BuildMaster instance to see exactly what operations are available.

Returns a list of files matching the mask on the current server.

Script usage:

@FilesOnDisk(includes, [excludes], [directory])

Parameters:

NameDescription
includesIncludes
excludesExcludes
directoryIn Directory

Example:


set @ProjectFiles = @FilesOnDisk(*.csproj); # gets project files in working directory

set @NonXDarFiles = @FilesOnDisk(**, **.xdr, $TmpPath); # gets all files except those with an .xdr extension