 |
Syntax
Result = DeleteDirectory(Directory$, Pattern$ [, Mode])
Description
Deletes the specified Directory$. Warning, it's a very dangerous command so use it with
care. If the Result is 0, the directory hasn't be fully deleted.
The 'Pattern$' should be a valid OS pattern. For example: "*.*" will delete any files in the directory.
"*.exe" will Delet only the .exe files. By default, a null Pattern$ ("") will delete all the files.
'Mode' is optional and can be a combination of the following values:
#PB_FileSystem_Recursive: Deletes the directory with all subdirectories.
#PB_FileSystem_Force : Deletes event the files which are protected (ReadOnly).
Supported OS Windows, AmigaOS, Linux <- CreateDirectory() - FileSystem Index - DeleteFile() ->
|
|
 |