Filtering the List of Files and Folders

CuteFTP allows you to set filters that automatically include or exclude files from transfers. You define the filters in the Filter dialog box, then apply them to individual transfers, or use them on all transfers. You can also use filters during folder synchronizations. When you apply filters, you do not add or remove files, you simply set which files will be visible or invisible in CuteFTP.

To choose which files/folders to display

  1. On the main menu, click View > Filter.

  2. Select the Enable Filtering check box.

  3. Select the following check boxes as needed:

    • To apply the filter to folders, select the Apply filtering to folder name(s) check box.

    • To use filters with transfers, select the Apply to file transfers check box.

    • To make filters case sensitive, select the Case sensitive filtering check box.

    • To use server filters, select the Enable server-side filtering check box, and type a filter from the Unix ls program.

  4. Click the Filter Mask tab.

  5. Type the names of files/folders you want to display, or use wildcard masks to include a group of files, then click Add.

  6. Select the Filter NOT Mask tab.

  7. Type the names of files/folders you want to hide, or use wildcard masks to exclude a group of files, then Add.

  8. Click OK.

Below are a few of the LIST wildcards (parameters) and combinations that can be passed to the ls program running on a UNIX server:

Parameter

Definition

-l

Display a list of files in the current directory, and information about each file (long format)

-a

Display hidden files

-la

Display a list of files in long format and include hidden files

-l *.ext

Display a list of files with a specific extension (*.html, *.txt, etc.)

ls r*

Displays a list of files with names beginning with r (or any other letter)

-t

Sort display by time stamp

-R

Sort recursively

-lt

Display files in long format, sorted by time

-t *.ext

Displays a list of files with a specific extension (*.html, *.txt, etc.), sorted by time

To transfer filtered items

  • After defining a filter as described above, in the Local Drives or Remote pane, click the files that remain visible, then click File > Upload Advanced, then click Upload filtered (or Download filtered if you are downloading.).

  • You can configure two filter sets: one for the Local pane, and one for the Remote pane. Note that CuteFTP applies the filter parameters to all of the contents, directories, and subdirectories displayed in that pane.
  • Filtering works with folder synchronizing.
  • You can filter by file extensions, for example, .htm, .php, .asp, etc.