Opendir Example, opendir () method is used to asynchronously open a directory in the file system.