<commit_before># FileSync

## Overview

FileSync synchronizes local file changes to mapped records in ServiceNow instances.

This enables ServiceNow developers to use their favorite integrated development environments (IDEs) and text editors
like WebStorm and Sublime for editing JavaScript, HTML, Jelly and other code - without wasting time and interrupting
development workflow copying and pasting code into a browser.

When a file changes within a configured root (project) folder, the parent folder and file name are used to identify the
table and record to be updated.

Adding an empty file, or clearing and saving an existing file, refreshes the local file with the latest instance
version, syncing *from* the instance *to* the local file. This is an easy way to populate your project folder with
existing scripts related to your project.

## Quick Start

Check out the [Intro video](https://vimeo.com/76378234) for a walk-through of installing, configuring and using FileSync.

Or, continue with the steps below.

## Installation

**Step 1.** Ensure the [JSON Web Service plugin](http://wiki.servicenow.com/index.php?title=JSON_Web_Service) is
activated for your instance.

**Step 2.** Unzip **FileSync-v0.1.0.zip** into your desired install path, for example:

* On Windows: `c:\dev\tools\filesync`
* On Mac: `/Applications/filesync`

**Step 3.** Create a local folder structure for your project / source files. Project folders will be mapped to root
folders in the **app.config.json** config file. The following example folder structure is mapped in the
**app.config.json settings** section below:


    c:\dev<commit_msg>Add download link.<commit_after># FileSync

## Overview

FileSync synchronizes local file changes to mapped records in ServiceNow instances.

This enables ServiceNow developers to use their favorite integrated development environments (IDEs) and text editors
like WebStorm and Sublime for editing JavaScript, HTML, Jelly and other code - without wasting time and interrupting
development workflow copying and pasting code into a browser.

When a file changes within a configured root (project) folder, the parent folder and file name are used to identify the
table and record to be updated.

Adding an empty file, or clearing and saving an existing file, refreshes the local file with the latest instance
version, syncing *from* the instance *to* the local file. This is an easy way to populate your project folder with
existing scripts related to your project.

## Quick Start

Check out the [Intro video](https://vimeo.com/76378234) for a walk-through of installing, configuring and using FileSync.

Or, continue with the steps below.

## Installation

**Step 1.** Ensure the [JSON Web Service plugin](http://wiki.servicenow.com/index.php?title=JSON_Web_Service) is
activated for your instance.

**Step 2.** Download **[FileSync-v0.1.0.zip](https://github.com/fruition-partners/filesync/raw/master/FileSync-v0.1.0.zip)**
and unzip into your desired install path, for example:

* On Windows: `c:\dev\tools\filesync`
* On Mac: `/Applications/filesync`

**Step 3.** Create a local folder structure for your project / source files. Project folders will be mapped to root
folders in the **app.config.json** config file. The following example folder structure is mapped in the
**app.config.json settings** section below:


    c:\dev
{'fraction_non_alphanumeric': 0.07410714285714286, 'fraction_numerical': 0.009226190476190476, 'mean_word_length': 4.7257240204429305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6375586', 'n_tokens_mistral': 905, 'n_tokens_neox': 861, 'n_words': 441}