--- BasiliskII/src/BeOS/extfs_beos.cpp 1999/11/01 16:24:14 1.6 +++ BasiliskII/src/BeOS/extfs_beos.cpp 1999/11/08 18:05:59 1.8 @@ -455,3 +455,29 @@ 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; +} + + +/* + * Rename/move file/directory, returns false on error (and sets errno) + */ + +bool extfs_rename(const char *old_path, const char *new_path) +{ + return rename(old_path, new_path) == 0; +}