--- BasiliskII/src/BeOS/extfs_beos.cpp 1999/11/01 16:24:14 1.6 +++ BasiliskII/src/BeOS/extfs_beos.cpp 1999/11/08 17:00:12 1.7 @@ -455,3 +455,19 @@ size_t extfs_write(int fd, void *buffer, } return actual; } + + +/* + * Remove file/directory, returns false on error (and sets errno) + */ + +bool extfs_remove(const char *path) +{ + if (remove(path) < 0) { + if (errno == EISDIR) + return rmdir(path) == 0; + else + return false; + } + return true; +}