filetype - UDM Command

Syntax

filetype [binary|text=file-mask-1]...[binary|text=file-mask-n] [remove=file-mask-1]...[remove=file-mask-n] [resetall]

Description

The filetype command sets a series of masks and corresponding transfer mode types.

For any file whose source name matches a specific mask, the transfer mode type corresponding to that mask (text or binary) is used in transferring that file. If the source file name in a transfer does not match any registered masks, the default transfer mode type (set using the mode command) is used.

Issuing the filetype command by itself, with no parameters, dumps all of the file masks and their corresponding mode types that have been set.

Parameters

Parameter

Description

binary | text = filemask_1

Sets the specified file mask (filemask_1) so that source file names matching this mask will be transferred as binary files.

binary | text = filemask_n

Sets the specified file mask (filemask_n) so that source file names matching this mask will be transferred as binary files.

remove=filemask_1

Removes an entry that matches the specified file mask (filemask_1).

remove=filemask_n

Removes an entry that matches the specified file mask (filemask_n).

resetall

Removes all file mask entries.

Examples


To set a single file mask and its corresponding transfer mode type:

filetype binary=*.exe


To set a series of file masks in a single call, instead of making multiple calls:

filetype text=*.txt text=*.c binary=*.exe binary=*.dat


To remove a file mask:

filetype remove=*.txt