Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
Table of Contents

Anchor
1154886
1154886
Syntax

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

Anchor
1154889
1154889
Description

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

Anchor
1154891
1154891
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.

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

Anchor
1154893
1154893
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.

Anchor
1154921
1154921

Anchor
1154922
1154922
Examples


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

Panel
filetype binary=*.exe


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

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


Anchor
1154929
1154929
To remove a file mask:

Panel
filetype remove=*.txt

Anchor
1154931
1154931

Anchor
1154381
1154381