Initializing help system before first use

removefiles

Purpose
Remove files selected using file name patterns.
Synopsis
procedure removefiles(opt:integer, dir:text,filters:text)
procedure removefiles(filters:text)
Arguments
opt 
Options (several options can be combined):
SYS_RECURS 
Recursive search in subdirectories
SYS_NODIR 
Do not remove directories (only files)
SYS_DIRONLY 
Remove only directories
dir 
Base directory for the search (default: current directory)
filters 
File name filters (default: all files removed)
Example
The following deletes directory "mydir" including its content:
removefiles(SYS_RECURS,"mydir","*")
removedir("mydir")
Further information
1. The filters argument consists in a list of patterns separated by the symbol ";". A pattern is composed of a path (using the usual operating system conventions) which last component may include wildcard characters "*" (any text of any length), "?" (any single character) and "|" (logical "or"). For instance "bin/*.exe;models/*.mos|*.dat" will select all files with extension ".exe" in the "bin" directory as well as files with extension ".mos" and ".dat" in the "models" directory.
2. File name matching is achieved using function pathmatch and differences may be observed depending on the operating system ( e.g. file names are case sensitive under Posix systems but not under Windows).
Related topics
Module

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.