opendir, readdir, closedir functions finished