AppCode 2018.3 Help

Excluding Files and Folders from Upload/Download

Suppressing uploading, downloading, and synchronization for files or folders with sources ensures that the sources are protected against accidental update. When applied to non-sources, it can save system resources because media, caches, or temporary files are no longer copied unnecessarily.

You may need to suppress upload/download in the following cases:

  1. You are going to work with externally created and uploaded source code. To process these remote sources in AppCode, you have to download them and arrange them in a project. However, there are some sources that you should not update at all. On the other hand, the folders on the remote host also may contain huge amounts of media, caches, temporal files, that you actually do not need in your work.

  2. You have already downloaded the data from the server and arranged them in a AppCode project. However, for this or that reason, you need to have some files or folders on the server protected against upload/download, for example, to prevent accidental overwriting.

  3. The local copy of an application contains both source code and other data that you do not need to upload. Besides, you want to protect some sources against overwriting by mistake. In this case, you can suppress upload/download for all files and folders that should not be uploaded.

There are two ways to exclude folders from upload/download:

Separate files can be protected against upload/download only through excluding them by name.

Excluding a folder on server from upload/download after project creation

To choose the required folder in the Remote Host tool window

  1. On the main menu, choose Tools | Deployment | Browse Remote Host or View | Tool Windows | Remote Host .

  2. In the Remote Host tool window that opens, select the relevant server configuration from the list.

  3. Select the folder to exclude and choose Exclude Path on the context menu of the selection.

To add the required folder to the list of excluded paths

  1. Open the Deployment dialog box by doing one of the following:

    • Choose Tools | Deployment | Configuration on the main menu.

    • In the Settings/Preferences dialog (⌘,), select Deployment under Build, Execution, Deployment.

  2. In the Deployment dialog box, switch to the tab. The tab shows the list of the previously excluded local and remote folders.

  3. Click the Add deployment path button. An empty line is added to the list.

  4. Click Browse button. The Select remote excluded path dialog box that opens shows the data on the host accessed through the selected server configuration. Select the required folder.

  5. When you OK, you return to the tab, where the selected remote folder is added to the list.

Excluding a local folder from upload/download

  1. Open the Deployment dialog box by doing one of the following:

    • Choose Tools | Deployment | Configuration on the main menu.

    • In the Settings/Preferences dialog (⌘,), select Deployment under Build, Execution, Deployment.

  2. In the Deployment dialog box, switch to the tab. The tab shows the list of the previously excluded local and remote folders.

  3. Click the Add local path button. In the empty line that is added to the list, specify the location of the folder to be protected against upload/download. Type the path manually or click Browse button and choose the required folder in the dialog that opens.

Excluding files and folders from upload/download by name

  1. Open the Options dialog box by doing one of the following:

    • On the main menu, choose Tools | Deployment | Options.

    • In the Settings/Preferences dialog (⌘,), go to Build, Execution, Deployment | Deployment | Options.

  2. In the Options dialog box that opens, specify the patterns that define the names of these files and folders in the Exclude items by name field.

    Use semicolons as delimiters. Wildcards are welcome.

    The exclusion is applied recursively. This means that if a matching folder has subfolders, the contents of these subfolders are not deployed either.

Removing the exclusion mark

  • Select a file or folder to upload/download and choose Remove Path from Excluded from the context menu.

    Returning a folder to upload/download affects all its subfolders and files.

Last modified: 28 March 2019

See Also