When you deploy a renamed folder to a target site, the assets in the original folder are moved to the new one; however, the original folder—now empty—remains on the target site. Empty folders are periodically removed by the following VFS components:

These components wake up at regular intervals and delete any empty folders that are older than the configured age. You can configure both components in their respective properties files, in /atg/epub/file:

Property

Description

enabled

A boolean, must be set to true (the default) in order to schedule empty directory removal.

folderAge

Specifies in milliseconds how old an empty folder must be before it is eligible for removal. The default is 604800000 (one week).

schedule

Schedules empty folder removal in this format:

every interval in initial-delay

where interval specifies how often the component wakes up to check for empty folders; and initial-delay specifies how long it waits after the target site’s application server starts up before starting to scan for empty folders.

wait and wakeup are expressed in this format:

ntime-unit

where n is an integer, and time-unit is one of the following:

msec
sec|seconds
min|minute|minutes
hour|hours

The default setting is:

every 1 hour in 1 hour

If you create a custom VFS, you should create and configure its own ConfigEmptyDirDeleter or WWWEmptyDirDeleter component for the appropriate agent. To configure this component, simply copy the appropriate properties file from the installed ATG distribution into the appropriate folder, and modify as needed. For example:

$class=atg.vfs.EmptyFolderCleanupService

virtualFileSystem=custom-VFS-name

scheduler=/atg/dynamo/service/Scheduler
schedule=every 24 hours in 4 hours

enabled=true
folderAge=17280000

You must also specify this component as one of the initial services in atg/epub/file/Initial.properties. For example:

initialServices+=\
  ConfigFileSystem,\
  ConfigEmptyDirDeleter

 
loading table of contents...