if (lToDelete.isDirectory() && !isSymlink) {
throw runtime.newErrnoEPERMError(filename.getUnicodeValue());
}
if (posix.unlink(lToDelete.getAbsolutePath()) < 0) {
throw runtime.newErrnoFromInt(posix.errno());
}
}
return runtime.newFixnum(args.length);