Skip to content

Watched folders

A watched folder is a folder on the lab PC that the File Hub watches: it uploads every new file in it to Scifeon. You usually add one watched folder per instrument: the folder the instrument saves its results to. In Scifeon, each watched folder is a Hub Device of type FileAgent.

Add at least one environment first.

  1. On the configuration page, open Watched Folders and click Add Watched Folder.
  2. Fill in the form:
    • Environment: the Scifeon instance the files go to.
    • Name: a name for the instrument, for example HPLC-01. The name identifies the watched folder in Scifeon and cannot be changed later.
    • Folder: the folder the instrument writes into, for example C:\Instruments\HPLC-01. Type the path or click Browse… to pick a folder on the PC. If the folder does not exist, it is created. For a folder on a network share, type the full network path, such as \\fileserver\Instruments\HPLC-01; see Instruments that save to a file server.
  3. Optionally, open Detection and Retention Settings (Optional) to choose which files are uploaded and what happens to the original file. See Settings when you add a watched folder.
  4. Click Add. The new watched folder’s page opens.

The Add Watched Folder dialog with Detection and Retention Settings expanded

The File Hub starts watching the folder right away. In Scifeon, it appears as a device under the File Hub’s hub.

The Watched Folders page lists all watched folders, grouped by environment:

The Watched Folders page

  • Every file that appears in the folder is uploaded, including files in subfolders.
  • A file is uploaded only when the instrument has finished writing it. The File Hub waits until the file size has stopped changing for a couple of seconds.
  • Temporary files are skipped: files ending in .tmp or .partial, and Office lock files starting with ~$.
  • Files that were already in the folder before the watched folder was added are uploaded too.

By default, the File Hub leaves the original file where it is after uploading it. A watched folder can instead be set up to move uploaded files into an uploaded subfolder, or to delete them after upload. Files in the uploaded subfolder are deleted automatically after 30 days by default.

The File Hub only moves or deletes a file after Scifeon has confirmed the upload. A file that has not been uploaded yet, or that has changed since it was uploaded, is never moved or deleted.

When you add a watched folder, Detection and Retention Settings (Optional) sets which files are uploaded and what happens to the original file. If you leave the section closed, the watched folder gets the defaults described above.

SettingWhat it does
Include PatternsWhich files to upload, one pattern per line, for example *.csv. Empty uploads every file.
Ignore PatternsWhich files to skip, one pattern per line. Checked before Include Patterns. Empty skips the temporary files listed under Which files are uploaded; patterns you enter replace that list.
After UploadLeave the file in place, Move to the uploaded/ archive or Delete the file.
Retention DaysHow many days a file is kept in the uploaded subfolder. Only used with Move.

After the watched folder has been added, its settings belong to its File Agent device in Scifeon. To change them:

  1. Open the watched folder from the Watched Folders page.
  2. Click Configure in Scifeon. Its File Agent device opens in your Scifeon instance, in a new browser tab.
  3. Change the settings there and save.

The File Hub picks up the new settings the next time it uploads a file or syncs its configuration. To apply them right away, click Refresh Config on the Environments page.

  1. Open the watched folder from the Watched Folders page.
  2. Click Edit Folder…, enter or browse to the new folder and click Save.

The name cannot be changed. To rename a watched folder, remove it and add a new one.

  1. Open the watched folder from the Watched Folders page.
  2. Click Remove… and confirm.

The File Hub stops watching the folder, and its device is marked inactive in Scifeon. The folder and the files in it are left untouched.