core :: NativeDir :: defaultinit
# Standard `DIR*` pointer
private extern class NativeDir `{ DIR* `}
	# Open a directory
	new opendir(path: CString) `{ return opendir(path); `}
	# Close a directory
	fun closedir `{ closedir(self); `}
	# Read the next directory entry
	fun readdir: CString `{
		struct dirent *de;
		de = readdir(self);
		if (!de) return NULL;
		return de->d_name;
	`}
end
					lib/core/file.nit:1571,1--1587,3