updating oE remove_directory


include filesys.e 
namespace filesys 
public function remove_directory(sequence dir_name, integer force = 0) 

removes a directory.

  1. name : a sequence, the name of the directory to remove.
  2. force : an integer, if 1 this will also remove files and sub-directories in the directory. The default is 0, which means that it will only remove the directory if it is already empty.

An integer, 0 on failure, 1 on success.

Example 1:
if not remove_directory("the_old_folder") then 
	crash("Filesystem problem - could not remove the old folder") 
end if 
See Also:

create_directory, chdir, clear_directory

Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu