The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



DelDirTree


Unit:SDL_filesys
Class:none
Declaration:function DelDirTree (path: string): string;

The function DelDirTree deletes an entire directory tree including all files and subdirectories of the specified directory. The parameter path defines the path of the directory to be removed. DelDirTree returns an empty string on success, or the file name (including the path) of the file/directory which could not be removed.

Hint: Please note that the .NET version works slightly different from the Win32 version: in the case of an error the .NET version returns always the parameter path, while the Win32 version returns the path of the file or directory which caused the function DelDirTree to fail.

 



Last Update: 2023-Feb-06