# | Line 1898 | Line 1898 | static int16 fs_delete(uint32 pb, uint32 | |
---|---|---|
1898 | return result; | |
1899 | ||
1900 | // Delete file | |
1901 | < | if (remove(full_path) < 0) { |
1902 | < | int16 err = errno2oserr(); |
1903 | < | if (errno == EISDIR) { // Workaround for BeOS bug |
1904 | < | if (rmdir(full_path) < 0) |
1905 | < | return errno2oserr(); |
1906 | < | else |
1907 | < | return noErr; |
1908 | < | } else |
1909 | < | return err; |
1910 | < | } else |
1901 | > | if (!extfs_remove(full_path)) |
1902 | > | return errno2oserr(); |
1903 | > | else |
1904 | return noErr; | |
1905 | } | |
1906 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |