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:
ConfigEmptyDirDeleter
monitors theConfigFileSystem
in the Publishing agent.WWWEmptyDirDeleter
monitors theWWWFileSystem
in the Publishing Web agent.
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 |
---|---|
| A boolean, must be set to true (the default) in order to schedule empty directory removal. |
| Specifies in milliseconds how old an empty folder must be before it is eligible for removal. The default is 604800000 (one week). |
| Schedules empty folder removal by specifying a Default setting:
For detailed information on setting schedules, see the section Scheduler Services in the Platform Programming Guide. |
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 Oracle Commerce Platform 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