/**
* Configuration file for [ANY] File Cleanup.
*/
// Root section. DON'T TOUCH THIS!
"FileCleanup"
{
/**
* Here you can create your own sections.
* For example:
* -> Here we're clean all logs in default game directory.
* -> We're described ALL AVAILABLE parameters (include OPTIONALS).
*
* Section name can be used for rendering in error logs if you something fill incorrect.
*/
"Game Logs"
{
/**
* Path to directory where we should find all files.
* NOTE: path surely should ends with backslash ("/")!
*/
"path" "logs/"
/**
* Life time for file.
* Get's a string representation for time.
*
* i - minute.
* h - hour.
* d - day.
* m - month.
* y - year.
*
* For example, record "3i5h1d" will be readed as "1 day, 5 hours, 3 minutes" or 104580 seconds from last time.
*/
"lifetime" "3d"
/**
* Used time mode for checking.
*
* 0 - last access (doesn't work on FAT filesystems)
* 1 - created (doesn't work on FAT filesystems)
* 2 - last modification
*
* OPTIONAL. If this parameter not passed, used "last modification" mode.
*/
"timemode" "2"
/**
* Check subdirectories when searching files on delete?
*
* 0 - no.
* 1 - yes.
*
* OPTIONAL. If this parameter not passed, used "no" value.
*/
"include_subdirectories" "1"
/**
* Adds check for filename starting.
*
* OPTIONAL. If you leave this parameter empty, or remove fully - plugin doesn't try check filename starting.
*/
"starts_with" ""
/**
* Adds check for filename ending.
* Usually can be used for deleting files with special extension (like .dem or .log)
*
* OPTIONAL. If you leave this parameter empty, or remove fully - plugin doesn't try check filename ending.
*/
"ends_with" ""
/**
* NOTE: if you pass "starts_with" and "ends_with", plugin delete file ONLY WHEN BOTH CONDITIONS IS A TRUE.
*/
}
/**
* And, for example, simple rule for:
* -> Deleting demos in server root
* -> Doesn't check subdirectories
* -> Only older 3 days from date last accessing.
*/
"Recorded games (.dem)"
{
"path" "/"
"lifetime" "3d"
"timemode" "0"
"ends_with" ".dem"
}
}